Skip to content

Commit 33f56b7

Browse files
authored
gh-115252: Fix test_enum with -OO mode (GH-115253)
1 parent 6f93b4d commit 33f56b7

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
@@ -4891,11 +4891,11 @@ class Color(enum.Enum)
48914891
|
48924892
| Data and other attributes defined here:
48934893
|
4894-
| YELLOW = <Color.YELLOW: 3>
4894+
| CYAN = <Color.CYAN: 1>
48954895
|
48964896
| MAGENTA = <Color.MAGENTA: 2>
48974897
|
4898-
| CYAN = <Color.CYAN: 1>
4898+
| YELLOW = <Color.YELLOW: 3>
48994899
|
49004900
| ----------------------------------------------------------------------
49014901
| Data descriptors inherited from enum.Enum:
@@ -4905,7 +4905,18 @@ class Color(enum.Enum)
49054905
| value
49064906
|
49074907
| ----------------------------------------------------------------------
4908-
| Data descriptors inherited from enum.EnumType:
4908+
| Methods inherited from enum.EnumType:
4909+
|
4910+
| __contains__(value) from enum.EnumType
4911+
|
4912+
| __getitem__(name) from enum.EnumType
4913+
|
4914+
| __iter__() from enum.EnumType
4915+
|
4916+
| __len__() from enum.EnumType
4917+
|
4918+
| ----------------------------------------------------------------------
4919+
| Readonly properties inherited from enum.EnumType:
49094920
|
49104921
| __members__"""
49114922

0 commit comments

Comments
 (0)