Backmerge -r59233:59232

Guido said:
Please roll this back.  The error message you added is inappropriate
when the parameter to a legitimate register() call is omitted, e.g.

collections.Sequence.register()
This commit is contained in:
Christian Heimes 2007-11-30 15:13:13 +00:00
parent 7d2ff884ee
commit 45031dfd1c
2 changed files with 1 additions and 11 deletions

View file

@ -146,13 +146,6 @@ class TestABC(unittest.TestCase):
C()
self.assertEqual(B.counter, 1)
def test_error_on_subclass(self):
class A(abc.ABCMeta):
pass
class B:
pass
self.assertRaises(TypeError, A.register, B)
def test_main():
test_support.run_unittest(TestABC)