summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pyclbr.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-02 03:53:41 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-02 03:53:41 (GMT)
commit7402f791a4633689fea904b2bd9caea2b25de620 (patch)
tree36d27033dcf9d5f36b607a94bb3c8d52ecfe557e /Lib/test/test_pyclbr.py
parentd90f509b8f3482787eeeae560d9bc1c909a8e857 (diff)
downloadcpython-7402f791a4633689fea904b2bd9caea2b25de620.zip
cpython-7402f791a4633689fea904b2bd9caea2b25de620.tar.gz
cpython-7402f791a4633689fea904b2bd9caea2b25de620.tar.bz2
SF patch [#466616] Exclude imported items from doctest,
from Tim Hochberg. Also mucho fiddling to change the way doctest determines whether a thing is a function, module or class. Under 2.2, this really requires the functions in inspect.py (e.g., types.ClassType is close to meaningless now, if not outright misleading).
Diffstat (limited to 'Lib/test/test_pyclbr.py')
-rw-r--r--Lib/test/test_pyclbr.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py
index 179b3b5..fdb3ddf 100644
--- a/Lib/test/test_pyclbr.py
+++ b/Lib/test/test_pyclbr.py
@@ -32,7 +32,7 @@ class PyclbrTest(unittest.TestCase):
def assertHasattr(self, obj, attr, ignore):
''' succeed iff hasattr(obj,attr) or attr in ignore. '''
if attr in ignore: return
- if not hasattr(obj, attr): print "???",attr
+ if not hasattr(obj, attr): print "???", attr
self.failUnless(hasattr(obj, attr))
@@ -100,7 +100,8 @@ class PyclbrTest(unittest.TestCase):
def test_easy(self):
self.checkModule('pyclbr')
- self.checkModule('doctest')
+ self.checkModule('doctest',
+ ignore=['_isclass', '_isfunction', '_ismodule'])
self.checkModule('rfc822')
self.checkModule('xmllib')
self.checkModule('difflib')