]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 17 Sep 2021 10:11:28 +0000 (13:11 +0300)
committerGitHub <noreply@github.com>
Fri, 17 Sep 2021 10:11:28 +0000 (13:11 +0300)
commitce59ac93626004894c2b291ec599a36cfa9fb0be
tree4bc32808d7f7a6eb65ea89024f662761ce07b711
parent62c74f34e7541cf5c9780661b260c53617291804
[3.10] bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361) (GH-28409)

tearDown() is not called if setUp() raises an exception
(including SkipTest). addCleanup() should be used for guaranteed
execution of the cleanup code.
(cherry picked from commit 7dacb70485a0910eb298c24b4d051720ca56fb91)
Lib/test/test_socket.py