8000 gh-120361: Add `nonmember` test with enum flags inside to `test_enum` by sobolevn · Pull Request #120364 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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

Merged
merged 4 commits into from
Jun 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address review
  • Loading branch information
sobolevn committed Jun 11, 2024
commit a090927138889bee0d6c9948b3085c93865888ed
1 change: 1 addition & 0 deletions Lib/test/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,7 @@ class Example(Flag):
self.assertEqual(Example.A.value, 1)
self.assertEqual(Example.B.value, 2)
self.assertEqual(Example.ALL, 3)
self.assertIs(type(Example.ALL), int)

def test_nested_classes_in_enum_with_member(self):
"""Support locally-defined nested classes."""
Expand Down
Loading
0