[Python-checkins] python/dist/src/Lib doctest.py,1.102,1.103

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Mon Sep 13 03:07:14 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19468/Lib

Modified Files:
	doctest.py 
Log Message:
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.


Index: doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/doctest.py,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- doctest.py	13 Sep 2004 00:52:50 -0000	1.102
+++ doctest.py	13 Sep 2004 01:07:12 -0000	1.103
@@ -1019,7 +1019,7 @@
                                      "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)
 



More information about the Python-checkins mailing list