From: Nikita Sobolev Date: Sat, 10 Feb 2024 18:34:22 +0000 (+0300) Subject: gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) X-Git-Tag: v3.13.0a4~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33f56b743285f8419e92cfabe673fa165165a580;p=thirdparty%2FPython%2Fcpython.git gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) --- diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index 39c1ae0ad5a0..f7503331c1ac 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 = + | CYAN = | | MAGENTA = | - | CYAN = + | YELLOW = | | ---------------------------------------------------------------------- | 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__"""