diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-03 15:49:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-03 15:49:04 (GMT) |
commit | 49a7e347976c9b39149ac7505b11ad6e9e2bdeec (patch) | |
tree | 56469235e384349a7e0a7b2b3e9bd3d5de7cacc6 /Python/pystate.c | |
parent | 0b9956e9162d8723c2a30ff316ecc25e54459fb1 (diff) | |
download | cpython-49a7e347976c9b39149ac7505b11ad6e9e2bdeec.zip cpython-49a7e347976c9b39149ac7505b11ad6e9e2bdeec.tar.gz cpython-49a7e347976c9b39149ac7505b11ad6e9e2bdeec.tar.bz2 |
bpo-37137: Fix test_asyncio: use TestCase.set_event_loop() (GH-13779)
Replace asyncio.set_event_loop() with TestCase.set_event_loop() of
test_asyncio.utils: this method calls TestCase.close_loop() which
waits until the executor completes, to avoid leaking dangling
threads.
Inherit from test_asyncio.utils.TestCase rather than
unittest.TestCase.
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions