]> granicus.if.org Git - python/commit
- Changed output of DocTestParser.get_program() to make it easier to
authorEdward Loper <edloper@gradient.cis.upenn.edu>
Thu, 12 Aug 2004 02:41:30 +0000 (02:41 +0000)
committerEdward Loper <edloper@gradient.cis.upenn.edu>
Thu, 12 Aug 2004 02:41:30 +0000 (02:41 +0000)
commita5db6009fe195274760e0fb79aff67cb7f97e00e
tree745a3b70f82e3969b90cba55a7bc9636744d3bb1
parent8e4a34ba090a4ad9753ea8d9ccf95703c85fdbb4
- Changed output of DocTestParser.get_program() to make it easier to
  visually distinguish the expected output from the comments (use
  "##" to mark expected outputs, and "#" to mark comments).
- If the string given to DocTestParser.get_program() is indented, then
  strip its indentation.  (In particular, find the min indentation of
  non-blank lines, and strip that indentation from all lines.)
Lib/doctest.py
Lib/test/test_doctest.py