cpython/Lib/test/test_asyncio
Victor Stinner 2fc2313038 asyncio: Only call _check_resolved_address() in debug mode
* _check_resolved_address() is implemented with getaddrinfo() which is slow
* If available, use socket.inet_pton() instead of socket.getaddrinfo(), because
  it is much faster

Microbenchmark (timeit) on Fedora 21 (Python 3.4, Linux 3.17, glibc 2.20) to
validate the IPV4 address "127.0.0.1" or the IPv6 address "::1":

* getaddrinfo() 10.4 usec per loop
* inet_pton(): 0.285 usec per loop

On glibc older than 2.14, getaddrinfo() always requests the list of all local
IP addresses to the kernel (using a NETLINK socket). getaddrinfo() has other
known issues, it's better to avoid it when it is possible.
2015-02-04 14:51:23 +01:00
..
__init__.py Issue #22002: Make full use of test discovery in test sub-packages. 2014-07-23 12:00:29 -05:00
__main__.py Issue #22002: Make full use of test discovery in test sub-packages. 2014-07-23 12:00:29 -05:00
echo2.py
echo3.py
echo.py
keycert3.pem
pycacert.pem
ssl_cert.pem
ssl_key.pem
test_base_events.py Issue #23243: Close explicitly event loops in asyncio tests 2015-01-15 13:17:34 +01:00
test_events.py asyncio: Only call _check_resolved_address() in debug mode 2015-02-04 14:51:23 +01:00
test_futures.py asyncio: sync with Tulip 2015-01-15 00:04:21 +01:00
test_locks.py asyncio: sync with Tulip 2014-07-29 12:58:23 +02:00
test_proactor_events.py Issue #23243, asyncio: Emit a ResourceWarning when an event loop or a transport 2015-01-29 17:50:58 +01:00
test_queues.py Issue #21163, asyncio: Fix some "Task was destroyed but it is pending!" logs in tests 2014-06-25 23:11:21 +02:00
test_selector_events.py asyncio: sync with Tulip 2015-01-29 02:56:05 +01:00
test_sslproto.py Issue #23243, asyncio: Emit a ResourceWarning when an event loop or a transport 2015-01-29 17:50:58 +01:00
test_streams.py asyncio: pyflakes, remove unused import 2015-01-21 23:39:16 +01:00
test_subprocess.py Issue #23347, asyncio: send_signal(), terminate(), kill() don't check if the 2015-01-30 01:20:44 +01:00
test_tasks.py Closes #23219: cancelling asyncio.wait_for() now cancels the task 2015-01-15 16:29:10 +01:00
test_transports.py asyncio: Move loop attribute to _FlowControlMixin 2014-11-05 15:27:41 +01:00
test_unix_events.py asyncio: sync with Tulip 2015-01-29 14:15:19 +01:00
test_windows_events.py Issue #23293, asyncio: Rewrite IocpProactor.connect_pipe() as a coroutine 2015-01-26 15:04:03 +01:00
test_windows_utils.py asyncio: Close transports in tests 2015-01-15 14:24:55 +01:00