From: Georg Brandl Date: Sun, 26 Jun 2005 23:09:51 +0000 (+0000) Subject: Fix test cases for doctest. X-Git-Tag: v2.5a0~1639 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecf93c765c8c8675ac2276d26679ec3998831744;p=thirdparty%2FPython%2Fcpython.git Fix test cases for doctest. --- diff --git a/Lib/doctest.py b/Lib/doctest.py index 5b00ec5c6c1a..6244fae6ccb6 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 fe4d863b97af..fc4841ae12e5 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"""