-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-120361: Add nonmember
test with enum flags inside to test_enum
#120364
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am ambivalent about this being a necessary test, but if we are going to test it let's also test the types (i.e. Example.ALL
is an int
)
When you're done making the requested changes, leave the comment: |
@sobolevn Can you also update @thejcannon Would that addition have helped? |
I think that I just had a bunch of bad assumptions all built up. That being said I think your suggestion is good. |
Thanks @sobolevn for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
…_enum` (pythonGH-120364) * pythongh-120361: Add `nonmember` test with enum flags inside to `test_enum` (cherry picked from commit 7fadfd8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-120511 is a backport of this pull request to the 3.13 branch. |
…_enum` (pythonGH-120364) * pythongh-120361: Add `nonmember` test with enum flags inside to `test_enum` (cherry picked from commit 7fadfd8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-120512 is a backport of this pull request to the 3.12 branch. |
…_enum` (pythonGH-120364) * pythongh-120361: Add `nonmember` test with enum flags inside to `test_enum`
…_enum` (pythonGH-120364) * pythongh-120361: Add `nonmember` test with enum flags inside to `test_enum`
…_enum` (pythonGH-120364) * pythongh-120361: Add `nonmember` test with enum flags inside to `test_enum`
I think that this corner case is important enough to be tested.
enum.nonmember
type-decays Flag values #120361