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.
V
Victor Stinner committed
07559450b2d9179e4c99e0af088ce7550e549f94
Parent: b2f9473
Committed by GitHub <noreply@github.com>
on 6/14/2019, 11:02:51 AM