commit | 07559450b2d9179e4c99e0af088ce7550e549f94 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Fri Jun 14 13:02:51 2019 +0200 |
committer | GitHub <noreply@github.com> | Fri Jun 14 13:02:51 2019 +0200 |
tree | f0e6cb7c58179b73b43fa984a83b3f51232345c7 | |
parent | b2f94730d947f25b8507c5f76202e917683e76f7 [diff] |
bpo-37278: Fix test_asyncio ProactorLoopCtrlC (GH-14074) Join the thread to prevent leaking a running thread and leaking a reference. Cleanup also the test: * asyncioWindowsProactorEventLoopPolicy became the default policy, there is no need to set it manually. * Only start the thread once the loop is running. * Use a shorter sleep in the thread (100 ms rather than 1 sec). * Use close_loop(loop) rather than loop.close(). * Use longer variable names.