From 0f337e63b8bb6eba5a4201e5c7a339258a0e52cf Mon Sep 17 00:00:00 2001 From: sobolevn Date: Sat, 10 Feb 2024 19:45:40 +0300 Subject: [PATCH] gh-115252: Fix `test_enum` with `-00` mode --- Lib/test/test_enum.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index 39c1ae0ad5a078..f7503331c1ac1d 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__"""