]> granicus.if.org Git - python/commitdiff
Fix test cases for doctest.
authorGeorg Brandl <georg@python.org>
Sun, 26 Jun 2005 23:09:51 +0000 (23:09 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 26 Jun 2005 23:09:51 +0000 (23:09 +0000)
Lib/doctest.py
Lib/test/test_doctest.py

index 5b00ec5c6c1af58fff5d5b4debeb12e68d1f4ae3..6244fae6ccb6cd62564c5e002ac614a1b1851ed6 100644 (file)
@@ -2476,6 +2476,7 @@ def script_from_examples(s):
           blah
        #
        #     Ho hum
+       <BLANKLINE>
        """
     output = []
     for piece in DocTestParser().parse(s):
index fe4d863b97af98295514c3259c6b38b62b978ac9..fc4841ae12e554dde39da5d58f7baeffe94d489b 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"""