From ccb5e4dd6527b19e1bfd1c3247deddaa6b12eddd Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 13 Aug 2005 09:06:24 +0000 Subject: Complete backport of #1172785 fix. --- Lib/doctest.py | 1 + Lib/test/test_doctest.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Lib/doctest.py b/Lib/doctest.py index 18125f6..642b522 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -2472,6 +2472,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 0ae6b8d..1665c05 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""" -- cgit v0.12