]> granicus.if.org Git - python/commitdiff
Better diagnostic.
authorGeorg Brandl <georg@python.org>
Sun, 18 May 2008 17:10:40 +0000 (17:10 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 18 May 2008 17:10:40 +0000 (17:10 +0000)
Lib/test/test_weakset.py

index 22ac9afe160adc650c4a3a2fbe31a746471f26c7..ee30d92c471ec566c5fe76df62606a04fd2516a8 100644 (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)