[Python-checkins] python/dist/src/Lib doctest.py,1.70,1.71
edloper at users.sourceforge.net
edloper at users.sourceforge.net
Thu Aug 19 21:26:09 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4687/dist/src/Lib
Modified Files:
doctest.py
Log Message:
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.
Index: doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/doctest.py,v
retrieving revision 1.70
retrieving revision 1.71
diff -C2 -d -r1.70 -r1.71
*** doctest.py 19 Aug 2004 19:19:03 -0000 1.70
--- doctest.py 19 Aug 2004 19:26:06 -0000 1.71
***************
*** 201,205 ****
# 8. Unittest Support
'DocTestCase',
- 'nooutput',
'DocTestSuite',
'DocFileCase',
--- 201,204 ----
***************
*** 2106,2110 ****
runner = DebugRunner(optionflags=self._dt_optionflags,
checker=self._dt_checker, verbose=False)
! runner.run(self._dt_test, out=nooutput)
def id(self):
--- 2105,2109 ----
runner = DebugRunner(optionflags=self._dt_optionflags,
checker=self._dt_checker, verbose=False)
! runner.run(self._dt_test)
def id(self):
***************
*** 2120,2126 ****
return "Doctest: " + self._dt_test.name
- def nooutput(*args):
- pass
-
def DocTestSuite(module=None, globs=None, extraglobs=None,
optionflags=0, test_finder=None,
--- 2119,2122 ----
More information about the Python-checkins
mailing list