SIGN IN SIGN UP

bpo-37069: regrtest uses sys.unraisablehook (GH-13759)

regrtest now uses sys.unraisablehook() to mark a test as "environment
altered" (ENV_CHANGED) if it emits an "unraisable exception".
Moreover, regrtest logs a warning in this case.

Use "python3 -m test --fail-env-changed" to catch unraisable
exceptions in tests.
V
Victor Stinner committed
95f61c8b1619e736bd5e29a0da0183234634b6e8
Parent: 913fa1c
Committed by GitHub <noreply@github.com> on 6/12/2019, 11:09:04 PM