mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Better diagnostic.
This commit is contained in:
parent
9dba5d9764
commit
192197064b
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue