From: Georg Brandl Date: Sun, 18 May 2008 21:04:46 +0000 (+0000) Subject: Ignore test_c_api when checking for set methods. Thanks Brett! X-Git-Tag: v3.0b1~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02c0bbbe6d36b848f5992db9319a15775f99f3dc;p=python Ignore test_c_api when checking for set methods. Thanks Brett! --- diff --git a/Lib/test/test_weakset.py b/Lib/test/test_weakset.py index ee30d92c47..7f5b8eb544 100644 --- a/Lib/test/test_weakset.py +++ b/Lib/test/test_weakset.py @@ -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)