diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-23 09:13:53 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-23 09:13:53 (GMT) |
commit | bd2ffa502212bedfdeeda1a05b3a23246e085495 (patch) | |
tree | 4d0ae01963ca4b108d5e7af64e28ac97b6cfd26b /Lib/test/regrtest.py | |
parent | fb4a96a58fe0994f1d4b0328874a99376c25fc20 (diff) | |
download | cpython-bd2ffa502212bedfdeeda1a05b3a23246e085495.zip cpython-bd2ffa502212bedfdeeda1a05b3a23246e085495.tar.gz cpython-bd2ffa502212bedfdeeda1a05b3a23246e085495.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 8509f55..f1892ac 100755 --- 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: + if result[0] != PASSED and not pgo: output = stream.getvalue() orig_stderr.write(output) orig_stderr.flush() |