summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-09-13 01:07:12 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-09-13 01:07:12 (GMT)
commitc56847878e503ddea8309b0a0c45e06d7c56f2ee (patch)
treee930a41762ae4aff555cf58ed3da04682a404496 /Lib/doctest.py
parent82076ef19482c7fc8b3f4a322f12d4417a397b3e (diff)
downloadcpython-c56847878e503ddea8309b0a0c45e06d7c56f2ee.zip
cpython-c56847878e503ddea8309b0a0c45e06d7c56f2ee.tar.gz
cpython-c56847878e503ddea8309b0a0c45e06d7c56f2ee.tar.bz2
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 3a8496f..2aa7408 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)