diff --git a/Lib/doctest.py b/Lib/doctest.py index 5b00ec5c6c1..6244fae6ccb 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -2476,6 +2476,7 @@ def script_from_examples(s): blah # # Ho hum + """ output = [] for piece in DocTestParser().parse(s): diff --git a/Lib/test/test_doctest.py b/Lib/test/test_doctest.py index fe4d863b97a..fc4841ae12e 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! + >>> 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 + >>> 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 + """ def test_debug(): r"""