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):
|
def test_methods(self):
|
||||||
weaksetmethods = dir(WeakSet)
|
weaksetmethods = dir(WeakSet)
|
||||||
for method in dir(set):
|
for method in dir(set):
|
||||||
if method.startswith('_'):
|
if method == 'test_c_api' or method.startswith('_'):
|
||||||
continue
|
continue
|
||||||
self.assert_(method in weaksetmethods,
|
self.assert_(method in weaksetmethods,
|
||||||
"WeakSet missing method " + method)
|
"WeakSet missing method " + method)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user