diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-02-10 18:34:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-10 18:34:22 (GMT) |
commit | 33f56b743285f8419e92cfabe673fa165165a580 (patch) | |
tree | 3f56f7355b384d701ca86cfdd3ceb1ac925e90b2 | |
parent | 6f93b4df92b8fbf80529cb6435789f5a75664a20 (diff) | |
download | cpython-33f56b743285f8419e92cfabe673fa165165a580.zip cpython-33f56b743285f8419e92cfabe673fa165165a580.tar.gz cpython-33f56b743285f8419e92cfabe673fa165165a580.tar.bz2 |
gh-115252: Fix `test_enum` with `-OO` mode (GH-115253)
-rw-r--r-- | Lib/test/test_enum.py | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index 39c1ae0..f750333 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -4891,11 +4891,11 @@ class Color(enum.Enum) | | Data and other attributes defined here: | - | YELLOW = <Color.YELLOW: 3> + | CYAN = <Color.CYAN: 1> | | MAGENTA = <Color.MAGENTA: 2> | - | CYAN = <Color.CYAN: 1> + | YELLOW = <Color.YELLOW: 3> | | ---------------------------------------------------------------------- | Data descriptors inherited from enum.Enum: @@ -4905,7 +4905,18 @@ class Color(enum.Enum) | value | | ---------------------------------------------------------------------- - | Data descriptors inherited from enum.EnumType: + | Methods inherited from enum.EnumType: + | + | __contains__(value) from enum.EnumType + | + | __getitem__(name) from enum.EnumType + | + | __iter__() from enum.EnumType + | + | __len__() from enum.EnumType + | + | ---------------------------------------------------------------------- + | Readonly properties inherited from enum.EnumType: | | __members__""" |