This website requires JavaScript.
Explore
Help
Sign In
Mirror
/
cpython
mirror of
https://github.com/python/cpython
Watch
4
Star
1
Fork
You've already forked cpython
0
Code
Issues
Releases
Wiki
Activity
0047e16d1b
cpython
/
Lib
/
test
/
test_doctest.py
3 lines
63 B
Python
Raw
Normal View
History
Unescape
Escape
Whitespace normalization.
2001-09-17 23:26:39 -03:00
import
doctest
,
test_support
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).
2001-09-09 03:12:01 -03:00
test_support
.
run_doctest
(
doctest
)