cpython/Lib/test/support
Miss Islington (bot) 58f7bf3a89
bpo-34945: Buffer output in test suite only when creating junit file (GH-10204)
After commit d0f49d2f50, the output of the
test suite is always buffered as the test output needs to be included in
the JUnit file in same cases (as when a test fails). This has the
consequence that printing or using debuggers (like pdb) in the test
suite does not result in a good user experience anymore.

This commit modifies the test suite runner so it only captures the test
output when the JUnit file is requested to fix the regression so prints
and debuggers are usable again.
(cherry picked from commit 02277482ea)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2018-10-29 14:05:31 -07:00
..
__init__.py bpo-34945: Buffer output in test suite only when creating junit file (GH-10204) 2018-10-29 14:05:31 -07:00
script_helper.py bpo-33053: -m now adds *starting* directory to sys.path (GH-6231) (#6236) 2018-03-25 23:43:50 +10:00
testresult.py bpo-34945: Buffer output in test suite only when creating junit file (GH-10204) 2018-10-29 14:05:31 -07:00