From ecf93c765c8c8675ac2276d26679ec3998831744 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 26 Jun 2005 23:09:51 +0000 Subject: [PATCH] Fix test cases for doctest. --- 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 5b00ec5c6c..6244fae6cc 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 fe4d863b97..fc4841ae12 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""" -- 2.49.0