[Python-checkins] python/dist/src/Lib/test test_doctest.py, 1.5.18.11, 1.5.18.12

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Fri Aug 6 03:01:58 CEST 2004


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

Modified Files:
      Tag: tim-doctest-branch
	test_doctest.py 
Log Message:
Moved the parsing into a new utility Parser class.  This was primarily
to squash massive code duplication in script_from_examples(), which is
now a 1-liner.


Index: test_doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_doctest.py,v
retrieving revision 1.5.18.11
retrieving revision 1.5.18.12
diff -C2 -d -r1.5.18.11 -r1.5.18.12
*** test_doctest.py	5 Aug 2004 23:11:21 -0000	1.5.18.11
--- test_doctest.py	6 Aug 2004 01:01:56 -0000	1.5.18.12
***************
*** 924,928 ****
      >>> name = 'test.test_doctest.sample_func'
      >>> print doctest.testsource(test.test_doctest, name)
-     #
      #      Blah blah
      #
--- 924,927 ----
***************
*** 932,940 ****
      #
      #      Yee ha!
-     #
  
      >>> name = 'test.test_doctest.SampleNewStyleClass'
      >>> print doctest.testsource(test.test_doctest, name)
-     #
      print '1\n2\n3'
      # Expected:
--- 931,937 ----
***************
*** 942,950 ****
      #     2
      #     3
-     #
  
      >>> name = 'test.test_doctest.SampleClass.a_classmethod'
      >>> print doctest.testsource(test.test_doctest, name)
-     #
      print SampleClass.a_classmethod(10)
      # Expected:
--- 939,945 ----
***************
*** 953,957 ****
      # Expected:
      #     12
-     #
  """
  
--- 948,951 ----



More information about the Python-checkins mailing list