]> granicus.if.org Git - python/commit
bpo-37069: regrtest uses sys.unraisablehook (GH-13759)
authorVictor Stinner <vstinner@redhat.com>
Wed, 12 Jun 2019 23:09:04 +0000 (01:09 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 23:09:04 +0000 (01:09 +0200)
commit95f61c8b1619e736bd5e29a0da0183234634b6e8
tree6d70a71d5e9538ab70d9039eabf64315409e939d
parent913fa1c8245d1cde6edb4254f4fb965cc91786ef
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.
Lib/test/libregrtest/setup.py
Lib/test/libregrtest/utils.py
Lib/test/test_regrtest.py
Misc/NEWS.d/next/Tests/2019-06-13-00-46-25.bpo-37069.wdktFo.rst [new file with mode: 0644]