mirror of https://github.com/python/cpython
Ignore test_c_api when checking for set methods. Thanks Brett!
This commit is contained in:
parent
192197064b
commit
02c0bbbe6d
|
@ -31,7 +31,7 @@ class TestWeakSet(unittest.TestCase):
|
|||
def test_methods(self):
|
||||
weaksetmethods = dir(WeakSet)
|
||||
for method in dir(set):
|
||||
if method.startswith('_'):
|
||||
if method == 'test_c_api' or method.startswith('_'):
|
||||
continue
|
||||
self.assert_(method in weaksetmethods,
|
||||
"WeakSet missing method " + method)
|
||||
|
|
Loading…
Reference in New Issue