]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-115252: Fix `test_enum` with `-OO` mode (GH-115253) (GH-115260)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 11 Feb 2024 05:15:40 +0000 (06:15 +0100)
committerGitHub <noreply@github.com>
Sun, 11 Feb 2024 05:15:40 +0000 (21:15 -0800)
(cherry picked from commit 33f56b743285f8419e92cfabe673fa165165a580)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Lib/test/test_enum.py

index ccb71da25d41c9eac104d74f8391d6f9525e5b4c..08c7ddea916799aadd442d9236b93363681d8189 100644 (file)
@@ -4792,11 +4792,11 @@ class Color(enum.Enum)
  |
  |  Data and other attributes defined here:
  |
- |  YELLOW = <Color.YELLOW: 3>
+ |  CYAN = <Color.CYAN: 1>
  |
  |  MAGENTA = <Color.MAGENTA: 2>
  |
- |  CYAN = <Color.CYAN: 1>
+ |  YELLOW = <Color.YELLOW: 3>
  |
  |  ----------------------------------------------------------------------
  |  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__"""