Searched refs:__abstractmethods__ (Results 1 - 7 of 7) sorted by relevance
/external/python/cpython2/Lib/test/ |
H A D | test_abc.py | 45 self.assertEqual(C.__abstractmethods__, set(["foo"])) 50 self.assertEqual(D.__abstractmethods__, set(["foo"])) 55 self.assertEqual(E.__abstractmethods__, set()) 61 self.assertEqual(F.__abstractmethods__, set(["bar"]))
|
H A D | test_descr.py | 4644 # type pretends not to have __abstractmethods__. 4645 self.assertRaises(AttributeError, getattr, type, "__abstractmethods__") 4648 self.assertRaises(AttributeError, getattr, meta, "__abstractmethods__") 4652 del X.__abstractmethods__
|
/external/python/cpython3/Lib/test/ |
H A D | test_abc.py | 157 self.assertEqual(C.__abstractmethods__, {"foo"}) 162 self.assertEqual(D.__abstractmethods__, {"foo"}) 167 self.assertEqual(E.__abstractmethods__, set()) 173 self.assertEqual(F.__abstractmethods__, {"bar"}) 244 self.assertEqual(A.__abstractmethods__, {"x"})
|
H A D | test_descr.py | 4453 # type pretends not to have __abstractmethods__. 4454 self.assertRaises(AttributeError, getattr, type, "__abstractmethods__") 4457 self.assertRaises(AttributeError, getattr, meta, "__abstractmethods__") 4461 del X.__abstractmethods__
|
/external/python/cpython2/Lib/ |
H A D | abc.py | 93 for name in getattr(base, "__abstractmethods__", set()): 97 cls.__abstractmethods__ = frozenset(abstracts)
|
/external/python/cpython3/Lib/ |
H A D | abc.py | 139 for name in getattr(base, "__abstractmethods__", set()): 143 cls.__abstractmethods__ = frozenset(abstracts)
|
/external/python/cpython3/Objects/ |
H A D | typeobject.c | 48 _Py_IDENTIFIER(__abstractmethods__); variable 498 /* type itself has an __abstractmethods__ descriptor (this). Don't return 515 /* __abstractmethods__ should only be set once on a type, in 840 {"__abstractmethods__", (getter)type_abstractmethods, 3486 /* Compute ", ".join(sorted(type.__abstractmethods__))
|
Completed in 270 milliseconds