https://github.com/python/cpython/commit/879d8c466023b1a253ceb3c270cc56fd31b41e0b commit: 879d8c466023b1a253ceb3c270cc56fd31b41e0b branch: 3.11 author: Nikita Sobolev <[email protected]> committer: sobolevn <[email protected]> date: 2024-02-11T18:19:59+03:00 summary:
[3.11] gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) (#115279) (cherry picked from commit 33f56b743285f8419e92cfabe673fa165165a580) Co-authored-by: Nikita Sobolev <[email protected]> files: M Lib/test/test_enum.py diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index 8d668ac4399251..0d0aa479254ff4 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -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 @@ -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: @@ -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__""" _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
