]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39010: Improve test shutdown (GH-22066) (#22082)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Sep 2020 20:54:43 +0000 (13:54 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Sep 2020 20:54:43 +0000 (13:54 -0700)
commit8d68e59f11267ded765d4af6d71a49784a12fad5
tree8f9e466e3ab7b04185a813790a56c6e31d5d45d2
parenta2680058ee1f43cab282e9f4c2b35fd89464ebb6
bpo-39010: Improve test shutdown (GH-22066) (#22082)

Simply closing the event loop isn't enough to avoid warnings. If we
don't also shut down the event loop's default executor, it sometimes
logs a "dangling thread" warning.

Follow-up to GH-22017
(cherry picked from commit be435ae2b064dc64f04475bec632862e1dbf605f)

Co-authored-by: Ben Darnell <ben@bendarnell.com>
Co-authored-by: Ben Darnell <ben@bendarnell.com>
Lib/test/test_asyncio/test_windows_events.py