]> granicus.if.org Git - python/commitdiff
move this test to test_descr; it's not abc specific
authorBenjamin Peterson <benjamin@python.org>
Wed, 12 Jan 2011 15:24:27 +0000 (15:24 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 12 Jan 2011 15:24:27 +0000 (15:24 +0000)
Lib/test/test_abc.py
Lib/test/test_descr.py

index 52d2187b8bfa4b601cc61e4fbf28c452e18b50a9..d86f97c068c743a85d86701460a1df14ab660f18 100644 (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):
index 115d1e860ae6eb06437175278b798b8ab1b0f5a4..282ec09d930da912de29bf7715b81a79009340da 100644 (file)
@@ -4273,6 +4273,13 @@ class DictProxyTests(unittest.TestCase):
         dict_ = {k: v for k, v in self.C.__dict__.items()}
         self.assertEqual(repr(self.C.__dict__), 'dict_proxy({!r})'.format(dict_))
 
+    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__")
+
 
 class PTypesLongInitTest(unittest.TestCase):
     # This is in its own TestCase so that it can be run before any other tests.