You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c18f8d0
Browse filesBrowse the repository at this point in the historyBrowse files
Read and print tests output as UTF-8 in run_tests.py (#303)
The tests output is written as UTF-8, but run_tests.py read it with the
locale's encoding. On Windows (cp1252) a non-ASCII character crashed the
reader thread with a UnicodeDecodeError, and the run ended with "Timeout:
output is frozen." instead of the test results.
- Open all files as UTF-8, matching how UnitTesting writes them.
- Reconfigure stdout to UTF-8, since it uses cp1252 when piped on Windows
and printing the output would fail next.
- Make the reader thread a daemon, so that an error in the main thread
doesn't leave the process hanging.
0 commit comments