Better diagnostic.

This commit is contained in:
Georg Brandl 2008-05-18 17:10:40 +00:00
parent 9dba5d9764
commit 192197064b
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ class TestWeakSet(unittest.TestCase):
for method in dir(set):
if method.startswith('_'):
continue
self.assert_(method in weaksetmethods)
self.assert_(method in weaksetmethods,
"WeakSet missing method " + method)
def test_new_or_init(self):
self.assertRaises(TypeError, WeakSet, [], 2)