diff options
| author | Victor Stinner <vstinner@redhat.com> | 2019-06-14 11:02:51 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-14 11:02:51 (GMT) |
| commit | 07559450b2d9179e4c99e0af088ce7550e549f94 (patch) | |
| tree | f0e6cb7c58179b73b43fa984a83b3f51232345c7 /Lib/idlelib/idle_test/test_pyparse.py | |
| parent | b2f94730d947f25b8507c5f76202e917683e76f7 (diff) | |
| download | cpython-07559450b2d9179e4c99e0af088ce7550e549f94.zip cpython-07559450b2d9179e4c99e0af088ce7550e549f94.tar.gz cpython-07559450b2d9179e4c99e0af088ce7550e549f94.tar.bz2 | |
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.
Diffstat (limited to 'Lib/idlelib/idle_test/test_pyparse.py')
0 files changed, 0 insertions, 0 deletions
