Skip to content

[3.10] bpo-45212: Fix dangling threads in skipped tests in test_socke…#28409

Merged
serhiy-storchaka merged 1 commit intopython:3.10from
serhiy-storchaka:backport-7dacb70-3.10
Sep 17, 2021
Merged

[3.10] bpo-45212: Fix dangling threads in skipped tests in test_socke…#28409
serhiy-storchaka merged 1 commit intopython:3.10from
serhiy-storchaka:backport-7dacb70-3.10

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Sep 17, 2021

…t (GH-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

https://bugs.python.org/issue45212

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants