diff options
Diffstat (limited to 'scripts/run_gpu_tests.py')
| -rw-r--r-- | scripts/run_gpu_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py index 698ec36d0..5eb7b4161 100644 --- a/scripts/run_gpu_tests.py +++ b/scripts/run_gpu_tests.py | |||
| @@ -1281,4 +1281,8 @@ def run_suite(a, work: str) -> int: | |||
| 1281 | 1281 | ||
| 1282 | 1282 | ||
| 1283 | if __name__ == "__main__": | 1283 | if __name__ == "__main__": |
| 1284 | try: # a redirected stdout is strict ANSI code page under -I; write '?' for what it cannot encode | ||
| 1285 | sys.stdout.reconfigure(errors="replace") | ||
| 1286 | except (AttributeError, ValueError, OSError): | ||
| 1287 | pass | ||
| 1284 | sys.exit(main()) | 1288 | sys.exit(main()) |