summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorEdward Loper <edloper@gradient.cis.upenn.edu>2004-08-19 19:26:06 (GMT)
committerEdward Loper <edloper@gradient.cis.upenn.edu>2004-08-19 19:26:06 (GMT)
commit3a3817f506801e4a1e62d8cd52e1c8aa0feb2993 (patch)
tree01c327d22ea213a61c770fbf4d1dca3f436a506b /Lib/doctest.py
parentb7503ff631648db6b54641db3154f4a70193c997 (diff)
downloadcpython-3a3817f506801e4a1e62d8cd52e1c8aa0feb2993.zip
cpython-3a3817f506801e4a1e62d8cd52e1c8aa0feb2993.tar.gz
cpython-3a3817f506801e4a1e62d8cd52e1c8aa0feb2993.tar.bz2
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.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index dcd6407..311469f 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,