bpo-45212: Fix dangling threads in skipped tests in test_socket#28361
Conversation
tearDown() is not called if setUp() raises an exception (including SkipTest). addCleanup() should be used for guaranteed execution of the cleanup code.
|
🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 2a37255 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
|
Sorry @serhiy-storchaka, I had trouble checking out the |
|
GH-28384 is a backport of this pull request to the 3.9 branch. |
…onGH-28361) 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 7dacb70) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
GH-28385 is a backport of this pull request to the 3.10 branch. |
…onGH-28361) 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 7dacb70) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
…pythonGH-28361) 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 7dacb70) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-28408 is a backport of this pull request to the 3.9 branch. |
pythonGH-28361) 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 7dacb70) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
GH-28409 is a backport of this pull request to the 3.10 branch. |
tearDown() is not called if setUp() raises an exception
(including SkipTest). addCleanup() should be used for guaranteed
execution of the cleanup code.
https://bugs.python.org/issue45212