mirror of https://github.com/python/cpython
Better diagnostic.
This commit is contained in:
parent
9dba5d9764
commit
192197064b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue