Skip to content

Commit 3a3817f

Browse files
author
Edward Loper
committed
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.
1 parent b7503ff commit 3a3817f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Lib/doctest.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ def _test():
200200
'Tester',
201201
# 8. Unittest Support
202202
'DocTestCase',
203-
'nooutput',
204203
'DocTestSuite',
205204
'DocFileCase',
206205
'DocFileTest',
@@ -2105,7 +2104,7 @@ def debug(self):
21052104

21062105
runner = DebugRunner(optionflags=self._dt_optionflags,
21072106
checker=self._dt_checker, verbose=False)
2108-
runner.run(self._dt_test, out=nooutput)
2107+
runner.run(self._dt_test)
21092108

21102109
def id(self):
21112110
return self._dt_test.name
@@ -2119,9 +2118,6 @@ def __repr__(self):
21192118
def shortDescription(self):
21202119
return "Doctest: " + self._dt_test.name
21212120

2122-
def nooutput(*args):
2123-
pass
2124-
21252121
def DocTestSuite(module=None, globs=None, extraglobs=None,
21262122
optionflags=0, test_finder=None,
21272123
setUp=lambda: None, tearDown=lambda: None,

0 commit comments

Comments
 (0)