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

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