From: Edward Loper Date: Thu, 19 Aug 2004 19:26:06 +0000 (+0000) Subject: Got rid of nooutput() (was used by DocTestCase.debug()) X-Git-Tag: v2.4a3~187 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a3817f506801e4a1e62d8cd52e1c8aa0feb2993;p=thirdparty%2FPython%2Fcpython.git Got rid of nooutput() (was used by DocTestCase.debug()) It's redundant, since no output is written anyway: DebugRunner doesn't generate any output for failures and unexpected exceptions, and since verbose=False, it won't generate any output for non-failures either. --- diff --git a/Lib/doctest.py b/Lib/doctest.py index dcd64072e1a6..311469f0bd81 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -200,7 +200,6 @@ __all__ = [ 'Tester', # 8. Unittest Support 'DocTestCase', - 'nooutput', 'DocTestSuite', 'DocFileCase', 'DocFileTest', @@ -2105,7 +2104,7 @@ class DocTestCase(unittest.TestCase): runner = DebugRunner(optionflags=self._dt_optionflags, checker=self._dt_checker, verbose=False) - runner.run(self._dt_test, out=nooutput) + runner.run(self._dt_test) def id(self): return self._dt_test.name @@ -2119,9 +2118,6 @@ class DocTestCase(unittest.TestCase): def shortDescription(self): return "Doctest: " + self._dt_test.name -def nooutput(*args): - pass - def DocTestSuite(module=None, globs=None, extraglobs=None, optionflags=0, test_finder=None, setUp=lambda: None, tearDown=lambda: None,