cpython/Lib/test/test_asyncio
Victor Stinner 5013a5ebc9 [3.6] bpo-31250: test_asyncio: fix dangling threads (#3517)
* 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().

(cherry picked from commit 16432beadb)

* bpo-31250, test_asyncio: fix EventLoopTestsMixin.tearDown() (#3264)

Call doCleanups() to close the loop after calling
executor.shutdown(wait=True): see TestCase.set_event_loop() of
asyncio.test_utils.

Replace also gc.collect() with support.gc_collect().

(cherry picked from commit e8a533fbc7)
2017-09-12 14:18:23 -07:00
..
__init__.py
__main__.py
echo.py
echo2.py
echo3.py
keycert3.pem
pycacert.pem
ssl_cert.pem
ssl_key.pem
test_base_events.py
test_events.py [3.6] bpo-31250: test_asyncio: fix dangling threads (#3517) 2017-09-12 14:18:23 -07:00
test_futures.py [3.6] bpo-31250: test_asyncio: fix dangling threads (#3517) 2017-09-12 14:18:23 -07:00
test_locks.py
test_pep492.py
test_proactor_events.py [3.6] bpo-31250: test_asyncio: fix dangling threads (#3517) 2017-09-12 14:18:23 -07:00
test_queues.py
test_selector_events.py
test_sslproto.py
test_streams.py
test_subprocess.py bpo-31034: Reliable signal handler for test_asyncio (#2867) (#2876) 2017-07-26 02:33:47 +02:00
test_tasks.py bpo-31061: fix crash in asyncio speedup module (GH-2984) 2017-08-02 16:50:39 +09:00
test_transports.py
test_unix_events.py
test_windows_events.py bpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065) (#3068) 2017-08-11 01:52:13 +02:00
test_windows_utils.py