Commit ecf93c76 authored by Georg Brandl's avatar Georg Brandl

Fix test cases for doctest.

parent 5284b532
......@@ -2476,6 +2476,7 @@ def script_from_examples(s):
blah
#
# Ho hum
<BLANKLINE>
"""
output = []
for piece in DocTestParser().parse(s):
......
......@@ -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"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment