mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Teach regrtest how to pass on doctest failure msgs. This is done via a
horridly inefficient hack in regrtest's Compare class, but it's about as clean as can be: regrtest has to set up the Compare instance before importing a test module, and by the time the module *is* imported it's too late to change that decision. The good news is that the more tests we convert to unittest and doctest, the less the inefficiency here matters. Even now there are few tests with large expected-output files (the new cost here is a Python-level call per .write() when there's an expected- output file).
This commit is contained in:
parent
90ba8d9c80
commit
a0a6222509
8 changed files with 95 additions and 27 deletions
|
@ -1,3 +1,2 @@
|
|||
from test_support import verbose
|
||||
import doctest
|
||||
doctest.testmod(doctest, verbose=verbose)
|
||||
import doctest, test_support
|
||||
test_support.run_doctest(doctest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue