• Victor Stinner's avatar
    bpo-37069: regrtest uses sys.unraisablehook (GH-13759) · 95f61c8b
    Victor Stinner authored
    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.
    95f61c8b
utils.py 1.86 KB