mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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.
This commit is contained in:
parent
fb4a96a58f
commit
bd2ffa5022
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue