]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Got rid of nooutput() (was used by DocTestCase.debug())
authorEdward Loper <edloper@gradient.cis.upenn.edu>
Thu, 19 Aug 2004 19:26:06 +0000 (19:26 +0000)
committerEdward Loper <edloper@gradient.cis.upenn.edu>
Thu, 19 Aug 2004 19:26:06 +0000 (19:26 +0000)
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.

Lib/doctest.py

index dcd64072e1a65d9b448c885bbfa61c4ef62d786b..311469f0bd81eed628b54fe246a06b32ef2581b6 100644 (file)
@@ -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,