• Victor Stinner's avatar
    bpo-37278: Fix test_asyncio ProactorLoopCtrlC (GH-14074) · 07559450
    Victor Stinner authored
    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.
    07559450
2019-06-14-12-21-47.bpo-37278.z0HUOr.rst 113 Bytes