mirror of https://github.com/python/cpython.git
remove test for oldstyle classes
This commit is contained in:
parent
83cd3b91e2
commit
82c4885210
|
@ -98,14 +98,6 @@ def bar(self): pass # abstract override of concrete
|
||||||
self.assertRaises(TypeError, F) # because bar is abstract now
|
self.assertRaises(TypeError, F) # because bar is abstract now
|
||||||
self.assertTrue(isabstract(F))
|
self.assertTrue(isabstract(F))
|
||||||
|
|
||||||
def test_subclass_oldstyle_class(self):
|
|
||||||
class A:
|
|
||||||
__metaclass__ = abc.ABCMeta
|
|
||||||
class OldstyleClass:
|
|
||||||
pass
|
|
||||||
self.assertFalse(issubclass(OldstyleClass, A))
|
|
||||||
self.assertFalse(issubclass(A, OldstyleClass))
|
|
||||||
|
|
||||||
def test_registration_basics(self):
|
def test_registration_basics(self):
|
||||||
class A(metaclass=abc.ABCMeta):
|
class A(metaclass=abc.ABCMeta):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue