]> granicus.if.org Git - python/commit
bpo-31250, test_asyncio: fix dangling threads (#3252)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Sep 2017 12:46:06 +0000 (14:46 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2017 12:46:06 +0000 (14:46 +0200)
commit16432beadb8eba079c9786cc0c0eaacfd9fd2f7b
treef3c14222ddf24a83d355f6dbf1786ab65ed15600
parent6c2feabc5dac2f3049b15134669e9ad5af573193
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().
Lib/asyncio/test_utils.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_proactor_events.py