Commit ff01670d authored by Georg Brandl's avatar Georg Brandl

Better diagnostic.

parent f6168001
...@@ -33,7 +33,8 @@ class TestWeakSet(unittest.TestCase): ...@@ -33,7 +33,8 @@ class TestWeakSet(unittest.TestCase):
for method in dir(set): for method in dir(set):
if method.startswith('_'): if method.startswith('_'):
continue continue
self.assert_(method in weaksetmethods) self.assert_(method in weaksetmethods,
"WeakSet missing method " + method)
def test_new_or_init(self): def test_new_or_init(self):
self.assertRaises(TypeError, WeakSet, [], 2) self.assertRaises(TypeError, WeakSet, [], 2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment