◐ Shell
reader mode source ↗
Skip to content

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

Merged
ethanfurman merged 1 commit into
python:masterfrom
ethanfurman:enum-simple-fix
Apr 24, 2021
Merged

bpo-38659: [Enum] do not check '_inverted_' during _test_simple_enum#25566
ethanfurman merged 1 commit into
python:masterfrom
ethanfurman:enum-simple-fix

Conversation

@ethanfurman

@ethanfurman ethanfurman commented Apr 23, 2021

Copy link
Copy Markdown
Member

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