Skip to content

[3.11] gh-115252: Fix test_enum with -OO mode (GH-115253) #115279

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 1 commit into from
Feb 11, 2024
Merged
Changes from all commits
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
19 changes: 15 additions & 4 deletions Lib/test/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -4474,7 +4474,7 @@ class Color(enum.Enum)
Help on class Color in module %s:

class Color(enum.Enum)
| Color(value, names=None, *, module=None, qualname=None, type=None, start=1)
| Color(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
|\x20\x20
| Method resolution order:
| Color
Expand All @@ -4483,11 +4483,11 @@ class Color(enum.Enum)
|\x20\x20
| Data and other attributes defined here:
|\x20\x20
| YELLOW = <Color.YELLOW: 3>
| CYAN = <Color.CYAN: 1>
|\x20\x20
| MAGENTA = <Color.MAGENTA: 2>
|\x20\x20
| CYAN = <Color.CYAN: 1>
| YELLOW = <Color.YELLOW: 3>
|\x20\x20
| ----------------------------------------------------------------------
| Data descriptors inherited from enum.Enum:
Expand All @@ -4497,7 +4497,18 @@ class Color(enum.Enum)
| value
|\x20\x20
| ----------------------------------------------------------------------
| Data descriptors inherited from enum.EnumType:
| Methods inherited from enum.EnumType:
|\x20\x20
| __contains__(member) from enum.EnumType
|\x20\x20
| __getitem__(name) from enum.EnumType
|\x20\x20
| __iter__() from enum.EnumType
|\x20\x20
| __len__() from enum.EnumType
|\x20\x20
| ----------------------------------------------------------------------
| Readonly properties inherited from enum.EnumType:
|\x20\x20
| __members__"""

Expand Down