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

Skip to content

Commit eb44b2d

Browse files
Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
Patch by Arfrever Frehtes Taifersar Arahesis.
2 parents c2ab0b6 + 20f8728 commit eb44b2d

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
@@ -22,6 +22,12 @@ Tests
2222

2323
- Issue #20743: Fix a reference leak in test_tcl.
2424

25+
Tools/Demos
26+
-----------
27+
28+
- Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
29+
Patch by Arfrever Frehtes Taifersar Arahesis.
30+
2531

2632
What's New in Python 3.4.0 release candidate 2?
2733
===============================================

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)