summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-30 11:06:47 (GMT)
committerGeorg Brandl <georg@python.org>2006-09-30 11:06:47 (GMT)
commit154324a8c3bcdde62acff8272388948e3d75cb51 (patch)
treecd225ad869f45e491842154f14d45f011c450020 /Lib/test
parent05b3c450a811b93bd915ea0931b04e2679557390 (diff)
downloadcpython-154324a8c3bcdde62acff8272388948e3d75cb51.zip
cpython-154324a8c3bcdde62acff8272388948e3d75cb51.tar.gz
cpython-154324a8c3bcdde62acff8272388948e3d75cb51.tar.bz2
Bug #1560617: in pyclbr, return full module name not only for classes,
but also for functions.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_pyclbr.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py
index 6d7d5ba..5188bb3 100644
--- a/Lib/test/test_pyclbr.py
+++ b/Lib/test/test_pyclbr.py
@@ -93,6 +93,9 @@ class PyclbrTest(TestCase):
py_item = getattr(module, name)
if isinstance(value, pyclbr.Function):
self.assert_(isinstance(py_item, (FunctionType, BuiltinFunctionType)))
+ if py_item.__module__ != moduleName:
+ continue # skip functions that came from somewhere else
+ self.assertEquals(py_item.__module__, value.module)
else:
self.failUnless(isinstance(py_item, (ClassType, type)))
if py_item.__module__ != moduleName: