Turn off CPython warnings in tests

This commit is contained in:
Scott Shawcroft 2021-05-05 17:26:39 -07:00
parent d8701e5136
commit 7f2f8e2d58
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -524,7 +524,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
"LANG": "en_US.UTF-8"}
# run CPython to work out expected output
try:
output_expected = subprocess.check_output([CPYTHON3, '-B', test_file], env=e, stderr=subprocess.STDOUT)
output_expected = subprocess.check_output([CPYTHON3, '-Wignore', '-B', test_file], env=e, stderr=subprocess.STDOUT)
if args.write_exp:
with open(test_file_expected, 'wb') as f:
f.write(output_expected)