Skip to content

Fix two tiny bugs in the conformance suite#2216

Merged
AlexWaygood merged 1 commit intomainfrom
audit-tests
Mar 11, 2026
Merged

Fix two tiny bugs in the conformance suite#2216
AlexWaygood merged 1 commit intomainfrom
audit-tests

Conversation

@AlexWaygood
Copy link
Member

Mypy emitted an error, as expected, on line 39 of conformance/tests/aliases_recursive.py. But it wasn't emitting an error for the right reason -- the t6 variable here shadows a previously declared t6 variable on the previous line.

And on line 75 of conformance/tests/enums_members.py, the self is Pet.CAT condition will always evaluate to True, because this is a method on the Pet4 class, not the Pet class.

@AlexWaygood AlexWaygood added the topic: conformance tests Issues with the conformance test suite label Mar 11, 2026
@AlexWaygood AlexWaygood merged commit a1bbdf2 into main Mar 11, 2026
7 checks passed
@AlexWaygood AlexWaygood deleted the audit-tests branch March 11, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: conformance tests Issues with the conformance test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants