Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Make environment change warnings always verbose.
not to be submitted, just for debugging what's up in 3.10 CI.
  • Loading branch information
gpshead committed Apr 18, 2022
commit 0fe900258a52cf204856fcfdfd5ee965a7b701af
9 changes: 5 additions & 4 deletions Lib/test/libregrtest/save_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,9 @@ def __exit__(self, exc_type, exc_val, exc_tb):
if current != original:
support.environment_altered = True
restore(original)
if not self.quiet and not self.pgo:
print_warning(f"{name} was modified by {self.testname}")
print(f" Before: {original}\n After: {current} ",
file=sys.stderr, flush=True)
if not self.pgo:
print_warning(
f"{name} was modified by {self.testname}\n"
f" Before: {original}\n"
f" After: {current} ")
return False