Ignore test_c_api when checking for set methods. Thanks Brett!

This commit is contained in:
Georg Brandl 2008-05-18 21:04:46 +00:00
parent 192197064b
commit 02c0bbbe6d
1 changed files with 1 additions and 1 deletions

View File

@ -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)