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__.
V
Victor Stinner committed
b136b1aac4b7d07e3120ee59e41c02bc86032162
Parent: 75ec103
Committed by GitHub <noreply@github.com>
on 4/16/2021, 12:33:10 PM