commit | 49a7e347976c9b39149ac7505b11ad6e9e2bdeec | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Mon Jun 03 17:49:04 2019 +0200 |
committer | GitHub <noreply@github.com> | Mon Jun 03 17:49:04 2019 +0200 |
tree | 56469235e384349a7e0a7b2b3e9bd3d5de7cacc6 | |
parent | 0b9956e9162d8723c2a30ff316ecc25e54459fb1 [diff] |
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.