summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_weakset.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-18 17:10:40 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-18 17:10:40 (GMT)
commit192197064b1014a70a1d2144f6f523fa752d20c5 (patch)
tree1a112d1fb6f3cff65c5b38e064761fcbb65a9f9d /Lib/test/test_weakset.py
parent9dba5d9764350c9d71be15619995899bcad1ffbd (diff)
downloadcpython-192197064b1014a70a1d2144f6f523fa752d20c5.zip
cpython-192197064b1014a70a1d2144f6f523fa752d20c5.tar.gz
cpython-192197064b1014a70a1d2144f6f523fa752d20c5.tar.bz2
Better diagnostic.
Diffstat (limited to 'Lib/test/test_weakset.py')
-rw-r--r--Lib/test/test_weakset.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_weakset.py b/Lib/test/test_weakset.py
index 22ac9af..ee30d92 100644
--- a/Lib/test/test_weakset.py
+++ b/Lib/test/test_weakset.py
@@ -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)