summaryrefslogtreecommitdiff
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-09-13 01:07:12 +0000
committerTim Peters <tim.peters@gmail.com>2004-09-13 01:07:12 +0000
commite0488e7f44fe04c5e33018ded81b32b812c95480 (patch)
treea4309b593a255c501a1612fd8575ddd1912bf755 /Lib/doctest.py
parent98fc1b3931f8c512bd277c50febeee7f21c00f54 (diff)
downloadcpython-e0488e7f44fe04c5e33018ded81b32b812c95480.tar.gz
DocTestFinder._find(): for tests derived from a module __test__ global,
doctest always promised to stick "__test__" in the name. That got broken. Now it's fixed again.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 3a8496f440..2aa740853b 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -1019,7 +1019,7 @@ class DocTestFinder:
"must be strings, functions, methods, "
"classes, or modules: %r" %
(type(val),))
- valname = '%s.%s' % (name, valname)
+ valname = '%s.__test__.%s' % (name, valname)
self._find(tests, val, valname, module, source_lines,
globs, seen)