mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Revert "bpo-38659: [Enum] add _simple_enum decorator (GH-25285)" (GH-25476)
This reverts commit dbac8f40e8
.
This commit is contained in:
parent
dbac8f40e8
commit
503cdc7c12
20 changed files with 34 additions and 871 deletions
|
@ -4,7 +4,6 @@ from test.support import import_helper
|
|||
import builtins
|
||||
import contextlib
|
||||
import copy
|
||||
import enum
|
||||
import io
|
||||
import os
|
||||
import pickle
|
||||
|
@ -32,13 +31,6 @@ def mock_get_command_stdout(data):
|
|||
class BaseTestUUID:
|
||||
uuid = None
|
||||
|
||||
def test_safe_uuid_enum(self):
|
||||
class CheckedSafeUUID(enum.Enum):
|
||||
safe = 0
|
||||
unsafe = -1
|
||||
unknown = None
|
||||
enum._test_simple_enum(CheckedSafeUUID, py_uuid.SafeUUID)
|
||||
|
||||
def test_UUID(self):
|
||||
equal = self.assertEqual
|
||||
ascending = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue