]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Complete backport of #1172785 fix.
authorGeorg Brandl <georg@python.org>
Sat, 13 Aug 2005 09:06:24 +0000 (09:06 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 13 Aug 2005 09:06:24 +0000 (09:06 +0000)
Lib/doctest.py
Lib/test/test_doctest.py

index 18125f6b4b4f5b014778bff6fa900e58f67865a6..642b5223b906d6e8e7a34f5f6db0396981eed167 100644 (file)
@@ -2472,6 +2472,7 @@ def script_from_examples(s):
           blah
        #
        #     Ho hum
+       <BLANKLINE>
        """
     output = []
     for piece in DocTestParser().parse(s):
index 0ae6b8d180105e30a7c930d82ec52759d3b3be3d..1665c05414e2160684e10e96cfbcbcb1cc840a04 100644 (file)
@@ -1517,6 +1517,7 @@ words and expected output are converted to comments:
     ## 44
     #
     # Yee ha!
+    <BLANKLINE>
 
     >>> name = 'test.test_doctest.SampleNewStyleClass'
     >>> print doctest.testsource(test.test_doctest, name)
@@ -1525,6 +1526,7 @@ words and expected output are converted to comments:
     ## 1
     ## 2
     ## 3
+    <BLANKLINE>
 
     >>> name = 'test.test_doctest.SampleClass.a_classmethod'
     >>> print doctest.testsource(test.test_doctest, name)
@@ -1534,6 +1536,7 @@ words and expected output are converted to comments:
     print SampleClass(0).a_classmethod(10)
     # Expected:
     ## 12
+    <BLANKLINE>
 """
 
 def test_debug(): r"""