]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43843: libregrtest uses threading.excepthook (GH-25400)
authorVictor Stinner <vstinner@python.org>
Fri, 16 Apr 2021 12:33:10 +0000 (14:33 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Apr 2021 12:33:10 +0000 (14:33 +0200)
commitb136b1aac4b7d07e3120ee59e41c02bc86032162
tree5e8daa88492802a1c45b84cad0f7c4933a1394ea
parent75ec103b3adbb7c619a0e22fa60f3d34c5a9e603
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__.
Lib/test/libregrtest/setup.py
Lib/test/libregrtest/utils.py
Lib/test/test_regrtest.py
Lib/test/test_socketserver.py
Lib/test/test_threading.py
Misc/NEWS.d/next/Tests/2021-04-14-13-22-44.bpo-43843.ruIQKD.rst [new file with mode: 0644]