Skip to content

Commit ada6629

Browse files
[3.12] gh-115252: Fix test_enum with -OO mode (GH-115253) (GH-115260)
(cherry picked from commit 33f56b7) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent a5f49ce commit ada6629

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Lib/test/test_enum.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4792,11 +4792,11 @@ class Color(enum.Enum)
47924792
|
47934793
| Data and other attributes defined here:
47944794
|
4795-
| YELLOW = <Color.YELLOW: 3>
4795+
| CYAN = <Color.CYAN: 1>
47964796
|
47974797
| MAGENTA = <Color.MAGENTA: 2>
47984798
|
4799-
| CYAN = <Color.CYAN: 1>
4799+
| YELLOW = <Color.YELLOW: 3>
48004800
|
48014801
| ----------------------------------------------------------------------
48024802
| Data descriptors inherited from enum.Enum:
@@ -4806,7 +4806,18 @@ class Color(enum.Enum)
48064806
| value
48074807
|
48084808
| ----------------------------------------------------------------------
4809-
| Data descriptors inherited from enum.EnumType:
4809+
| Methods inherited from enum.EnumType:
4810+
|
4811+
| __contains__(value) from enum.EnumType
4812+
|
4813+
| __getitem__(name) from enum.EnumType
4814+
|
4815+
| __iter__() from enum.EnumType
4816+
|
4817+
| __len__() from enum.EnumType
4818+
|
4819+
| ----------------------------------------------------------------------
4820+
| Readonly properties inherited from enum.EnumType:
48104821
|
48114822
| __members__"""
48124823

0 commit comments

Comments
 (0)