Lines Matching defs:obj
125 def test_pickle_exception(assertion, exception, obj):
128 dumps(obj, protocol=protocol)
143 obj = foo()
144 self.assertFalse(enum._is_descriptor(obj))
145 setattr(obj, attr, 1)
146 self.assertTrue(enum._is_descriptor(obj))
438 obj = new(cls)
444 obj = new(cls, *create_value)
445 obj._value_ = value[0] if len(value) == 1 else value
446 obj.description = 'test description'
447 return obj
1951 obj = object.__new__(cls)
1952 obj._value_ = value
1953 return obj
1968 obj = object.__new__(cls)
1969 obj._value_ = value
1970 return obj
1984 obj = int.__new__(cls, value)
1985 obj._value_ = value
1986 return obj
2134 obj = timedelta.__new__(cls, value)
2135 obj._value_ = value
2136 obj.period = period
2137 return obj
2160 obj = object.__new__(cls)
2161 obj._value_ = value
2162 return obj
2177 obj = int.__new__(cls, value)
2178 obj.label = label
2179 obj._value_ = value
2180 return obj
4757 for name, obj in cls.__dict__.items():
4760 if isinstance(obj, enum.property):
4761 if obj.fget is not None or name not in member._member_map_: