summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-01-12 15:25:02 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-01-12 15:25:02 (GMT)
commit5e8dada4918e9baa023b9262127d60a6f9067818 (patch)
tree0ebb86d8c7ca2349b2ad4beb4ea5b0339e80d9b0 /Lib/test
parent1c02a44023f6e6204d8feb944f47edfd56065e5c (diff)
downloadcpython-5e8dada4918e9baa023b9262127d60a6f9067818.zip
cpython-5e8dada4918e9baa023b9262127d60a6f9067818.tar.gz
cpython-5e8dada4918e9baa023b9262127d60a6f9067818.tar.bz2
oops, wrong class
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_descr.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 282ec09..a81c218 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -4224,6 +4224,13 @@ order (MRO) for bases """
self.assertRaises(AttributeError, getattr, EvilGetattribute(), "attr")
+ 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 DictProxyTests(unittest.TestCase):
def setUp(self):
@@ -4273,13 +4280,6 @@ 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.