]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115252: Fix `test_enum` with `-OO` mode (GH-115253)
authorNikita Sobolev <mail@sobolevn.me>
Sat, 10 Feb 2024 18:34:22 +0000 (21:34 +0300)
committerGitHub <noreply@github.com>
Sat, 10 Feb 2024 18:34:22 +0000 (10:34 -0800)
Lib/test/test_enum.py

index 39c1ae0ad5a0787a3b6c4364ab1fad05fdf2a1e2..f7503331c1ac1dd4f67c6a7d138cad5ce5c79eab 100644 (file)
@@ -4891,11 +4891,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:
@@ -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__"""