]> granicus.if.org Git - python/commit
Teach regrtest how to pass on doctest failure msgs. This is done via a
authorTim Peters <tim.peters@gmail.com>
Sun, 9 Sep 2001 06:12:01 +0000 (06:12 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 9 Sep 2001 06:12:01 +0000 (06:12 +0000)
commita0a62225094a890c1b07ebc4f89e4c7c45c66b13
tree147057adad1ae5b6548b708753a2febe91080d5f
parent90ba8d9c80c4eba418ca2ddaefbf59c4acf00cf3
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).
Lib/test/README
Lib/test/regrtest.py
Lib/test/test_cookie.py
Lib/test/test_descrtut.py
Lib/test/test_difflib.py
Lib/test/test_doctest.py
Lib/test/test_generators.py
Lib/test/test_support.py