diff --git a/Lib/doctest.py b/Lib/doctest.py index dcd64072e1a..311469f0bd8 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -200,7 +200,6 @@ def _test(): 'Tester', # 8. Unittest Support 'DocTestCase', - 'nooutput', 'DocTestSuite', 'DocFileCase', 'DocFileTest', @@ -2105,7 +2104,7 @@ def debug(self): 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 @@ def __repr__(self): 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,