Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20f8728

Browse files
Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
Patch by Arfrever Frehtes Taifersar Arahesis.
1 parent 09141c4 commit 20f8728

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ Build
149149
- Issue #20609: Restored the ability to build 64-bit Windows binaries on
150150
32-bit Windows, which was broken by the change in issue #19788.
151151

152+
Tools/Demos
153+
-----------
154+
155+
- Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
156+
Patch by Arfrever Frehtes Taifersar Arahesis.
157+
152158

153159
What's New in Python 3.3.4?
154160
===========================

Tools/scripts/run_tests.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ def main(regrtest_args):
3232
]
3333
# Allow user-specified interpreter options to override our defaults.
3434
args.extend(test.support.args_from_interpreter_flags())
35+
36+
# Workaround for issue #20355
37+
os.environ.pop("PYTHONWARNINGS", None)
38+
# Workaround for issue #20361
39+
args.extend(['-W', 'error::BytesWarning'])
40+
3541
args.extend(['-m', 'test', # Run the test suite
3642
'-r', # Randomize test order
3743
'-w', # Re-run failed tests in verbose mode

0 commit comments

Comments
 (0)