object_test: remove conditional import
Related-to:
from __future__ import absolute_import, division, unicode_literals
+import enum
import collections
import decimal
import re
@@ -176,20 +177,6 @@ class ThingWithClassAsDefaultFactory(collections.defaultdict):
return self.__class__()
-try:
- import enum
-except ImportError:
- import types
-
- class enum(types.ModuleType):
-
- class Enum(object):
- pass
-
- class IntEnum(object):
- pass
-
-
class IntEnumTest(enum.IntEnum):
X = 1
Y = 2
