[Python-checkins]
python/dist/src/Lib/test test_doctest.py, 1.5.18.3, 1.5.18.4
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Tue Aug 3 18:07:36 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15983/Lib/test
Modified Files:
Tag: tim-doctest-branch
test_doctest.py
Log Message:
I changed an error msg, so now change the test of it to match.
("blanks" aren't required after PS1, only (a -- singular) blank is.)
Index: test_doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_doctest.py,v
retrieving revision 1.5.18.3
retrieving revision 1.5.18.4
diff -C2 -d -r1.5.18.3 -r1.5.18.4
*** test_doctest.py 3 Aug 2004 04:09:51 -0000 1.5.18.3
--- test_doctest.py 3 Aug 2004 16:07:33 -0000 1.5.18.4
***************
*** 115,119 ****
>>> doctest.DocTest(docstring, 'some_test', 'filename', 0)
Traceback (most recent call last):
! ValueError: line 0 of the docstring for some_test lacks blanks after >>>: '>>>print 1'
"""
--- 115,119 ----
>>> doctest.DocTest(docstring, 'some_test', 'filename', 0)
Traceback (most recent call last):
! ValueError: line 0 of the docstring for some_test lacks blank after >>>: '>>>print 1'
"""
***************
*** 382,386 ****
40 1 A.double
40 1 A.get
!
>>> def objfilter(obj):
... return isinstance(obj, (staticmethod, classmethod))
--- 382,386 ----
40 1 A.double
40 1 A.get
!
>>> def objfilter(obj):
... return isinstance(obj, (staticmethod, classmethod))
***************
*** 671,675 ****
from line #0 of f
Expected:
! 1 2
3
Got: 1 2 3
--- 671,675 ----
from line #0 of f
Expected:
! 1 2
3
Got: 1 2 3
***************
*** 751,756 ****
from line #1 of f
Differences (unified diff):
! --- Expected
! +++ Got
@@ -1,8 +1,8 @@
a
--- 751,756 ----
from line #1 of f
Differences (unified diff):
! --- Expected
! +++ Got
@@ -1,8 +1,8 @@
a
***************
*** 777,782 ****
from line #1 of f
Differences (unified diff):
! *** Expected
! --- Got
***************
*** 1,8 ****
--- 777,782 ----
from line #1 of f
Differences (unified diff):
! *** Expected
! --- Got
***************
*** 1,8 ****
***************
*** 840,844 ****
... >>> print range(10) # Should fail
... [0, 1, ..., 9]
! ... >>> doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
... >>> print range(10) # Should succeed
... [0, 1, ..., 9]
--- 840,844 ----
... >>> print range(10) # Should fail
... [0, 1, ..., 9]
! ... >>> doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
... >>> print range(10) # Should succeed
... [0, 1, ..., 9]
More information about the Python-checkins
mailing list