Skip to content

bpo-38659: [Enum] do not check '_inverted_' during _test_simple_enum #25566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2021

Conversation

ethanfurman
Copy link
Member

@ethanfurman ethanfurman commented Apr 23, 2021

Depending on usage, it's possible for Flag members to have the _inverted_ attribute when they are testing, while the Flag being testing against will not have that attribute on its members -- so skip that comparison.

https://bugs.python.org/issue38659

@ethanfurman ethanfurman merged commit 6c681e1 into python:master Apr 24, 2021
@ethanfurman ethanfurman deleted the enum-simple-fix branch October 21, 2021 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants