Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.

Patch by Arfrever Frehtes Taifersar Arahesis.
This commit is contained in:
Serhiy Storchaka 2014-02-24 14:00:38 +02:00
commit eb44b2d9e8
2 changed files with 12 additions and 0 deletions

View File

@ -22,6 +22,12 @@ Tests
- Issue #20743: Fix a reference leak in test_tcl.
Tools/Demos
-----------
- Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
Patch by Arfrever Frehtes Taifersar Arahesis.
What's New in Python 3.4.0 release candidate 2?
===============================================

View File

@ -32,6 +32,12 @@ def main(regrtest_args):
]
# Allow user-specified interpreter options to override our defaults.
args.extend(test.support.args_from_interpreter_flags())
# Workaround for issue #20355
os.environ.pop("PYTHONWARNINGS", None)
# Workaround for issue #20361
args.extend(['-W', 'error::BytesWarning'])
args.extend(['-m', 'test', # Run the test suite
'-r', # Randomize test order
'-w', # Re-run failed tests in verbose mode