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

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