[Python-3000-checkins] r45592 - python/branches/p3yk/Lib/test/test_pyclbr.py
guido.van.rossum
python-3000-checkins at python.org
Fri Apr 21 11:17:16 CEST 2006
Author: guido.van.rossum
Date: Fri Apr 21 11:17:15 2006
New Revision: 45592
Modified:
python/branches/p3yk/Lib/test/test_pyclbr.py
Log:
Fix the problems in this test. Boy this is a painful thing to debug --
it's fundamentally unmaintainable. Should we throw away pyclbr, or rewrite
it using the AST?
Modified: python/branches/p3yk/Lib/test/test_pyclbr.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_pyclbr.py (original)
+++ python/branches/p3yk/Lib/test/test_pyclbr.py Fri Apr 21 11:17:15 2006
@@ -57,6 +57,8 @@
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 @@
'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')
More information about the Python-3000-checkins
mailing list