cpython/Lib/test/test_asyncio
Victor Stinner 17f3663497 Issue #21326: Add asyncio.BaseEventLoop.is_closed() method
Add BaseEventLoop._closed attribute and use it to check if the event loop was
closed or not, instead of checking different attributes in each subclass of
BaseEventLoop.

run_forever() and run_until_complete() now raises a RuntimeError('Event loop is
closed') exception if the event loop was closed.

BaseProactorEventLoop.close() now also cancels "accept futures".
2014-06-04 01:06:24 +02:00
..
__init__.py asyncio.tests: Autodiscover asyncio tests. Patch by Vajrasky Kok. Closes #20668 2014-03-27 12:21:20 -04:00
__main__.py
echo.py
echo2.py
echo3.py
keycert3.pem
pycacert.pem
ssl_cert.pem
ssl_key.pem
test_base_events.py Issue #21326: Add asyncio.BaseEventLoop.is_closed() method 2014-06-04 01:06:24 +02:00
test_events.py Issue #21651: Fix ResourceWarning when running asyncio tests on Windows. 2014-06-04 00:23:26 +02:00
test_futures.py asyncio: Replace "unittest.mock" with "mock" in unit tests 2014-02-26 10:25:02 +01:00
test_locks.py asyncio: Replace "unittest.mock" with "mock" in unit tests 2014-02-26 10:25:02 +01:00
test_proactor_events.py asyncio: Replace "unittest.mock" with "mock" in unit tests 2014-02-26 10:25:02 +01:00
test_queues.py asyncio: Replace "unittest.mock" with "mock" in unit tests 2014-02-26 10:25:02 +01:00
test_selector_events.py Issue #21326: Add asyncio.BaseEventLoop.is_closed() method 2014-06-04 01:06:24 +02:00
test_streams.py Fix test-order-dependend asyncio test failure caused by rev 909ea8cc86bbab92dbb6231668f403b7360f30fa. 2014-05-13 09:19:39 -07:00
test_subprocess.py asyncio: pep8-ify the code. 2014-02-18 22:56:15 -05:00
test_tasks.py asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166. 2014-04-27 10:44:22 -07:00
test_transports.py asyncio: Replace "unittest.mock" with "mock" in unit tests 2014-02-26 10:25:02 +01:00
test_unix_events.py Issue #21119: asyncio now closes sockets on errors 2014-06-04 00:11:52 +02:00
test_windows_events.py asyncio: Fix pyflakes warnings: remove unused variables and imports 2014-02-26 11:07:42 +01:00
test_windows_utils.py Fix asyncio tests on Windows: wait for the subprocess exit 2014-06-04 00:42:04 +02:00