summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-06-26 23:09:51 (GMT)
committerGeorg Brandl <georg@python.org>2005-06-26 23:09:51 (GMT)
commitecf93c765c8c8675ac2276d26679ec3998831744 (patch)
tree009d58387125a072c317bc81a26478cf07a2ecbd /Lib
parent5284b532d1dfc9efaa25a1ef955015011f885125 (diff)
downloadcpython-ecf93c765c8c8675ac2276d26679ec3998831744.zip
cpython-ecf93c765c8c8675ac2276d26679ec3998831744.tar.gz
cpython-ecf93c765c8c8675ac2276d26679ec3998831744.tar.bz2
Fix test cases for doctest.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/doctest.py1
-rw-r--r--Lib/test/test_doctest.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index 5b00ec5..6244fae 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -2476,6 +2476,7 @@ def script_from_examples(s):
blah
#
# Ho hum
+ <BLANKLINE>
"""
output = []
for piece in DocTestParser().parse(s):
diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py
index fe4d863..fc4841a 100644
--- a/Lib/test/test_doctest.py
+++ b/Lib/test/test_doctest.py
@@ -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"""