]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 16 Sep 2021 10:30:00 +0000 (13:30 +0300)
committerGitHub <noreply@github.com>
Thu, 16 Sep 2021 10:30:00 +0000 (13:30 +0300)
commit7dacb70485a0910eb298c24b4d051720ca56fb91
treeeaa8c46a30400d00a57ef20fc28e215971ddd8c4
parent800bd01b6d365156403c3dde61765dc5fdbf64be
bpo-45212: Fix dangling threads in skipped tests in test_socket (GH-28361)

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