]> granicus.if.org Git - python/commit
Issue #7376: When called with no arguments doctest was running a
authorR. David Murray <rdmurray@bitdance.com>
Sun, 20 Dec 2009 16:46:06 +0000 (16:46 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Sun, 20 Dec 2009 16:46:06 +0000 (16:46 +0000)
commit77e48ba993a83ffd6e821ab69a09ab0d11771338
tree699e1896c4c33348d9e4345dc11b7770de5efd62
parent97138117b2a24c748dd2bd7e92843040700b0fd5
Issue #7376: When called with no arguments doctest was running a
self-test.  Because of a change to the way tracebacks are printed,
this self-test was failing.  The test is run (and passes) during normal
regression testing.  So instead of running the failing self-test this
patch makes doctest emit a usage message.  This is better behavior anyway
since passing in arguments is the real reason to run doctest as a command.

Bug discovery and initial patch by Florent Xicluna.
Lib/doctest.py
Misc/NEWS