]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the problems in this test. Boy this is a painful thing to debug --
authorGuido van Rossum <guido@python.org>
Fri, 21 Apr 2006 09:17:15 +0000 (09:17 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 21 Apr 2006 09:17:15 +0000 (09:17 +0000)
it's fundamentally unmaintainable.  Should we throw away pyclbr, or rewrite
it using the AST?

Lib/test/test_pyclbr.py

index ceb7a3d17079ff476b47b89cecd169a55f99fbb6..0eb7d9099b702a3a3271aec415fe2b4ae51d9839 100644 (file)
@@ -57,6 +57,8 @@ class PyclbrTest(TestCase):
             ignore are ignored.   If no module is provided, the appropriate
             module is loaded with __import__.'''
 
+        ignore = set(ignore) | set(['object'])
+
         if module == None:
             # Import it.
             # ('<silly>' is to work around an API silliness in __import__)
@@ -164,7 +166,7 @@ class PyclbrTest(TestCase):
                              'getproxies_internetconfig',)) # not on all platforms
         cm('pickle')
         cm('aifc', ignore=('openfp',))  # set with = in module
-        cm('Cookie')
+        cm('Cookie', ignore=('Cookie',)) # Cookie is an alias for SmartCookie
         cm('sre_parse', ignore=('dump',)) # from sre_constants import *
         cm('pdb')
         cm('pydoc')