cpython/Lib/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
base_events.py [3.6] call remove_done_callback in finally section (GH-1688) (#1755) 2017-05-23 00:36:23 -07:00
base_futures.py Merge 3.5 (issue #28634) 2016-11-07 16:07:30 -05:00
base_subprocess.py
base_tasks.py
compat.py
constants.py
coroutines.py [3.6] Fix a typo in a comment in coroutines.py (GH-2267) (GH-2370) 2017-06-23 22:44:57 -07:00
events.py bpo-31350: Optimize get_event_loop and _get_running_loop (GH-3347) (GH-3373) 2017-09-05 20:05:35 -07:00
futures.py bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. (#2109) 2017-06-11 14:00:14 +00:00
locks.py Fix waiter cancellation in asyncio.Lock (#1031) (#2037) 2017-06-09 17:07:48 -04:00
log.py
proactor_events.py [3.6] Fix TypeError is asyncio/proactor_events (GH-993) (#2061) 2017-06-10 00:15:28 -04:00
protocols.py
queues.py
selector_events.py
sslproto.py Revert "[3.6] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) (#2062)" (#2112) 2017-06-11 16:46:45 +02:00
streams.py
subprocess.py bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405) 2017-03-02 23:31:17 -05:00
tasks.py bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. (#2109) 2017-06-11 14:00:14 +00:00
test_utils.py [3.6] bpo-31250: test_asyncio: fix dangling threads (#3517) 2017-09-12 14:18:23 -07:00
transports.py
unix_events.py Merge 3.5 (issue #28704) 2016-11-15 15:27:23 -05:00
windows_events.py
windows_utils.py