[Python-checkins] python/dist/src/Lib/test test_doctest.py, 1.5.18.4, 1.5.18.5

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Tue Aug 3 18:45:49 CEST 2004


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

Modified Files:
      Tag: tim-doctest-branch
	test_doctest.py 
Log Message:
The NORMALIZE_WHITESPACE test relied on preserving trailing blanks
in Python source code.  That's too brittle, so changed the test.
If it's really required, it has to be tricked via an \x20 escape or
string interpolation.  Don't think it's worth the pain.

Two of the diff-option tests still fail here.  They're a bit mind-
boggling <wink>.  Still unsure why.


Index: test_doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_doctest.py,v
retrieving revision 1.5.18.4
retrieving revision 1.5.18.5
diff -C2 -d -r1.5.18.4 -r1.5.18.5
*** test_doctest.py	3 Aug 2004 16:07:33 -0000	1.5.18.4
--- test_doctest.py	3 Aug 2004 16:45:46 -0000	1.5.18.5
***************
*** 662,666 ****
  
      >>> def f(x):
!     ...     '>>> print 1, 2, 3\n  1   2 \n 3'
  
      >>> # Without the flag:
--- 662,666 ----
  
      >>> def f(x):
!     ...     '>>> print 1, 2, 3\n  1   2\n 3'
  
      >>> # Without the flag:



More information about the Python-checkins mailing list