cpython: cbe049647a04 (original) (raw)
Mercurial > cpython
changeset 104026:cbe049647a04 3.5
Issue #27829: regrtest -W displays stderr if env changed regrtest -W hides output if a test pass, but also when env changed and so the env changed warning is hidden. So it's hard to debug. With this change, stderr is now always displayed when a test doesn't pass. [#27829]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Fri, 23 Sep 2016 11:13:53 +0200 |
parents | 45ba976b7064 |
children | 12e3023d19bd 5fa14482bc9c |
files | Lib/test/regrtest.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Lib/test/regrtest.py 2 |
line wrap: on
line diff
--- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -989,7 +989,7 @@ def runtest(test, verbose, quiet, sys.stderr = stream result = runtest_inner(test, verbose, quiet, huntrleaks, display_failure=False, pgo=pgo)
if result[0] == FAILED and not pgo:[](#l1.7)
if result[0] != PASSED and not pgo:[](#l1.8) output = stream.getvalue()[](#l1.9) orig_stderr.write(output)[](#l1.10) orig_stderr.flush()[](#l1.11)