commit | 16432beadb8eba079c9786cc0c0eaacfd9fd2f7b | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Fri Sep 01 14:46:06 2017 +0200 |
committer | GitHub <noreply@github.com> | Fri Sep 01 14:46:06 2017 +0200 |
tree | f3c14222ddf24a83d355f6dbf1786ab65ed15600 | |
parent | 6c2feabc5dac2f3049b15134669e9ad5af573193 [diff] |
bpo-31250, test_asyncio: fix dangling threads (#3252) * Explicitly call shutdown(wait=True) on executors to wait until all threads complete to prevent side effects between tests. * Fix test_loop_self_reading_exception(): don't mock loop.close(). Previously, the original close() method was called rather than the mock, because how set_event_loop() registered loop.close().