mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
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?
This commit is contained in:
parent
303de6a25b
commit
d858f70617
1 changed files with 3 additions and 1 deletions
|
@ -57,6 +57,8 @@ class PyclbrTest(TestCase):
|
||||||
ignore are ignored. If no module is provided, the appropriate
|
ignore are ignored. If no module is provided, the appropriate
|
||||||
module is loaded with __import__.'''
|
module is loaded with __import__.'''
|
||||||
|
|
||||||
|
ignore = set(ignore) | set(['object'])
|
||||||
|
|
||||||
if module == None:
|
if module == None:
|
||||||
# Import it.
|
# Import it.
|
||||||
# ('<silly>' is to work around an API silliness in __import__)
|
# ('<silly>' is to work around an API silliness in __import__)
|
||||||
|
@ -164,7 +166,7 @@ class PyclbrTest(TestCase):
|
||||||
'getproxies_internetconfig',)) # not on all platforms
|
'getproxies_internetconfig',)) # not on all platforms
|
||||||
cm('pickle')
|
cm('pickle')
|
||||||
cm('aifc', ignore=('openfp',)) # set with = in module
|
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('sre_parse', ignore=('dump',)) # from sre_constants import *
|
||||||
cm('pdb')
|
cm('pdb')
|
||||||
cm('pydoc')
|
cm('pydoc')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue