From ada6629169f19c3e363dcd37a412dfe96ff58350 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sun, 11 Feb 2024 06:15:40 +0100 Subject: [3.12] gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) (GH-115260) (cherry picked from commit 33f56b743285f8419e92cfabe673fa165165a580) Co-authored-by: Nikita Sobolev --- 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 ccb71da..08c7dde 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py @@ -4792,11 +4792,11 @@ class Color(enum.Enum) | | Data and other attributes defined here: | - | YELLOW = + | CYAN = | | MAGENTA = | - | CYAN = + | YELLOW = | | ---------------------------------------------------------------------- | Data descriptors inherited from enum.Enum: @@ -4806,7 +4806,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__""" -- cgit v0.12