mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-22 23:10:18 +00:00
python3-pylint: fix astroid 4.1.2 functional-test fixture mismatches
astroid 4.1.2 (the version this distro packages) changed how it resolves the enclosing scope/parent name and end_lineno for decorated functions, singledispatch registrations, positional-only-arg checks and a few other node kinds. These functional tests were pinned against an older astroid's output and fail with plain output-text mismatches (not logic errors) once run against 4.1.2. Regenerated the expected .txt fixtures against astroid==4.1.2, mirroring the existing 0001-Adjust-test-expectations-for-ptest.patch approach for this recipe. tests/functional/u/undefined/undefined_variable.314.txt is pylint's own Python-3.14-specific override of undefined_variable.txt (see FunctionalTestFile.expected_output, which prefers a "<base>.<ver>.txt" file over the plain one when it matches the running interpreter). The distro's target Python is 3.14.7, so this file - not the plain .txt - is what actually gets read during ptest, and it still carried the pre-4.1.2 astroid values for the same two lines. Applied the identical fix there too. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -7,6 +7,7 @@ SRCREV = "c6768d3f1a45fbfad6a4ff9e167ca4f71dd5c991"
|
||||
SRC_URI += "git://github.com/pylint-dev/pylint;branch=main;protocol=https;tag=v${PV} \
|
||||
file://0001-Adjust-test-expectations-for-ptest.patch \
|
||||
file://0002-pyproject.toml-Keep-tool.setuptools.license-files.patch \
|
||||
file://0003-astroid-4.1.2-endlineno.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user