mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #20535: PYTHONWARNING no longer affects the run_tests.py script.
Patch by Arfrever Frehtes Taifersar Arahesis.
This commit is contained in:
parent
09141c4782
commit
20f8728bf0
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue