diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-12 23:09:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 23:09:04 (GMT) |
commit | 95f61c8b1619e736bd5e29a0da0183234634b6e8 (patch) | |
tree | 6d70a71d5e9538ab70d9039eabf64315409e939d /Misc | |
parent | 913fa1c8245d1cde6edb4254f4fb965cc91786ef (diff) | |
download | cpython-95f61c8b1619e736bd5e29a0da0183234634b6e8.zip cpython-95f61c8b1619e736bd5e29a0da0183234634b6e8.tar.gz cpython-95f61c8b1619e736bd5e29a0da0183234634b6e8.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2019-06-13-00-46-25.bpo-37069.wdktFo.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-06-13-00-46-25.bpo-37069.wdktFo.rst b/Misc/NEWS.d/next/Tests/2019-06-13-00-46-25.bpo-37069.wdktFo.rst new file mode 100644 index 0000000..f9f6474 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2019-06-13-00-46-25.bpo-37069.wdktFo.rst @@ -0,0 +1,7 @@ +regrtest now uses :func:`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. + |