Issue #7151: regrtest would generate a JSON failure if there was output
commit120ce84217e9173dbc3a39e9b35b562affd055c1
authorr.david.murray <r.david.murray@6015fed2-1504-0410-9fe1-9d1591cc4771>
Sun, 18 Oct 2009 21:12:37 +0000 (18 21:12 +0000)
committerr.david.murray <r.david.murray@6015fed2-1504-0410-9fe1-9d1591cc4771>
Sun, 18 Oct 2009 21:12:37 +0000 (18 21:12 +0000)
tree5fcaec8b8680cb8eb190c070a4f7391acf6a017b
parent5cd6fc4072ff0e011833714930d3b4e5ba5fc0b5
Issue #7151: regrtest would generate a JSON failure if there was output
to stderr during the test run and it happened to get emitted after the
worker thread emitted the result JSON.  Now we capture stdout and stderr
separately, which avoids that problem.  It also means that _all_ stderr
output is after all stdout output when we print the test results, but
that seems acceptable, since output ordering is not guaranteed anyway.
The patch also moves the emit of the test name into the output block
generated after the test completes.  Otherwise test names and test
output/errors were mixed in the terminal display, making it difficult
to determine which test generated the output.

git-svn-id: http://svn.python.org/projects/python/trunk@75503 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/test/regrtest.py
Misc/NEWS