SIGN IN SIGN UP

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.
V
Victor Stinner committed
49a7e347976c9b39149ac7505b11ad6e9e2bdeec
Parent: 0b9956e
Committed by GitHub <noreply@github.com> on 6/3/2019, 3:49:04 PM