[Python-checkins] python/dist/src/Lib/test test_doctest.py, 1.28, 1.29

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Tue Aug 24 00:38:08 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4476/Lib/test
Modified Files:
	test_doctest.py 
Log Message:
test_DocTestFinder(): This test failed when test_doctest was run
directly, due to assuming a filename specific to running tests "the
normal way". +ELLIPSIS to the rescue!
Index: test_doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_doctest.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- test_doctest.py	23 Aug 2004 22:13:22 -0000	1.28
+++ test_doctest.py	23 Aug 2004 22:38:05 -0000	1.29
@@ -280,8 +280,11 @@
 >>> print tests # doctest: +ELLIPSIS
 [<DocTest sample_func from ...:13 (1 example)>]
 
- >>> tests[0].filename
- 'test_doctest.py'
+The exact name depends on how test_doctest was invoked, so allow for
+leading path components.
+
+ >>> tests[0].filename # doctest: +ELLIPSIS
+ '...test_doctest.py'
 
 >>> test.test_doctest.__file__ = old
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /