Searched defs:NamedInt (Results 1 - 1 of 1) sorted by relevance

/external/python/cpython3/Lib/test/
H A Dtest_enum.py1045 class NamedInt(int): class in function:TestEnum.test_subclasses_with_getnewargs
1046 __qualname__ = 'NamedInt' # needed for pickle protocol 4
1077 if isinstance(self, NamedInt) and isinstance(other, NamedInt):
1078 return NamedInt(
1084 class NEI(NamedInt, Enum):
1091 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1092 globals()['NamedInt'] = NamedInt
1094 NI5 = NamedInt('tes
1102 class NamedInt(int): class in function:TestEnum.test_subclasses_with_getnewargs_ex
1159 class NamedInt(int): class in function:TestEnum.test_subclasses_with_reduce
1216 class NamedInt(int): class in function:TestEnum.test_subclasses_with_reduce_ex
1273 class NamedInt(int): class in function:TestEnum.test_subclasses_without_direct_pickle_support
1326 class NamedInt(int): class in function:TestEnum.test_subclasses_without_direct_pickle_support_using_name
[all...]

Completed in 127 milliseconds