commit | b136b1aac4b7d07e3120ee59e41c02bc86032162 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Fri Apr 16 14:33:10 2021 +0200 |
committer | GitHub <noreply@github.com> | Fri Apr 16 14:33:10 2021 +0200 |
tree | 5e8daa88492802a1c45b84cad0f7c4933a1394ea | |
parent | 75ec103b3adbb7c619a0e22fa60f3d34c5a9e603 [diff] |
bpo-43843: libregrtest uses threading.excepthook (GH-25400) test.libregrtest now marks a test as ENV_CHANGED (altered the execution environment) if a thread raises an exception but does not catch it. It sets a hook on threading.excepthook. Use --fail-env-changed option to mark the test as failed. libregrtest regrtest_unraisable_hook() explicitly flushs sys.stdout, sys.stderr and sys.__stderr__.