]> granicus.if.org Git - python/commitdiff
Ignore test_c_api when checking for set methods. Thanks Brett!
authorGeorg Brandl <georg@python.org>
Sun, 18 May 2008 21:04:46 +0000 (21:04 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 18 May 2008 21:04:46 +0000 (21:04 +0000)
Lib/test/test_weakset.py

index ee30d92c471ec566c5fe76df62606a04fd2516a8..7f5b8eb544fa3e48f4c81fb718870416f9753e4b 100644 (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)