mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-01 16:10:25 +00:00
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>