move this test to test_descr; it's not abc specific

This commit is contained in:
Benjamin Peterson 2011-01-12 15:24:27 +00:00
parent 1efb8dc871
commit 1c02a44023
2 changed files with 7 additions and 7 deletions

View file

@ -98,13 +98,6 @@ class TestABC(unittest.TestCase):
self.assertRaises(TypeError, F) # because bar is abstract now
self.assertTrue(isabstract(F))
def test_type_has_no_abstractmethods(self):
# type pretends not to have __abstractmethods__.
self.assertRaises(AttributeError, getattr, type, "__abstractmethods__")
class meta(type):
pass
self.assertRaises(AttributeError, getattr, meta, "__abstractmethods__")
def test_metaclass_abc(self):
# Metaclasses can be ABCs, too.
class A(metaclass=abc.ABCMeta):