Fix test cases for doctest.

This commit is contained in:
Georg Brandl 2005-06-26 23:09:51 +00:00
parent 5284b532d1
commit ecf93c765c
2 changed files with 4 additions and 0 deletions

View File

@ -2476,6 +2476,7 @@ def script_from_examples(s):
blah
#
# Ho hum
<BLANKLINE>
"""
output = []
for piece in DocTestParser().parse(s):

View 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"""