cpython/Lib/test/test_asyncio
Victor Stinner fa24c1c5af
[3.7] bpo-33353: Fix test_asyncio on FreeBSD (GH-7087)
* bpo-33353: test_asyncio uses smaller sendfile data (#7083)

bpo-32622, bpo-33353: sendfile() tests of test_asyncio use socket
buffers of 1 kB "to test on relative small data sets". Send only
160 KiB rather 10 MB to make the test much faster.

Shrink also SendfileBase.DATA from 1600 KiB to 160 KiB.

On Linux, 3 test_sock_sendfile_mix_with_regular_send() runs now take
less than 1 second, instead of 18 seconds.

On FreeBSD, the 3 tests didn't hang, but took 3 minutes. Now
the 3 tests pass in less than 1 seconds.

(cherry picked from commit 2932755cc1)

* bpo-33353: test_asyncio set SO_SNDBUF after connect (GH-7086)

bpo-32622, bpo-33353: On macOS, sock.connect() changes the
SO_SNDBUF value. Only set SO_SNDBUF and SO_RCVBUF buffer sizes
once a socket is connected or binded, not before.

(cherry picked from commit b97de3dd86)
2018-05-24 03:21:14 +02:00
..
__init__.py bpo-31370: Remove support for threads-less builds (#3385) 2017-09-07 18:56:24 +02:00
__main__.py Issue #22002: Make full use of test discovery in test sub-packages. 2014-07-23 12:00:29 -05:00
echo.py
echo2.py
echo3.py
functional.py Make asyncio tests run when there's no SSL module (#5196) 2018-01-15 17:56:32 -05:00
keycert3.pem
pycacert.pem
ssl_cert.pem
ssl_key.pem
test_base_events.py Use IPv4 only to avoid IP address collision (GH-7030) 2018-05-21 05:30:06 -07:00
test_buffered_proto.py bpo-32251: Implement asyncio.BufferedProtocol. (#4755) 2018-01-28 16:30:26 -05:00
test_context.py bpo-32630: Use contextvars in decimal (GH-5278) 2018-01-27 13:46:46 -05:00
test_events.py [3.7] bpo-33353: Fix test_asyncio on FreeBSD (GH-7087) 2018-05-24 03:21:14 +02:00
test_futures.py bpo-32643: Drop support for a few private Task and Future APIs. (#5293) 2018-01-24 11:31:01 -05:00
test_locks.py bpo-32841: Fix cancellation in awaiting asyncio.Condition (GH-5665) 2018-02-14 01:47:30 -08:00
test_pep492.py bpo-32591: Add native coroutine origin tracking (#5250) 2018-01-21 09:44:07 -05:00
test_proactor_events.py bpo-26819: Prevent proactor double read on resume (GH-6921) 2018-05-20 03:57:32 -07:00
test_queues.py bpo-32574: Fix leaks in asyncio.Queue.put() and .get() (#5208) 2018-01-25 18:45:43 -05:00
test_runners.py bpo-32314: Fix asyncio.run() to cancel runinng tasks on shutdown (#5262) 2018-01-21 14:56:59 -05:00
test_selector_events.py bpo-33263: Fix FD leak in _SelectorSocketTransport (GH-6450) (#7022) 2018-05-21 11:35:25 +03:00
test_server.py bpo-32662: Try making test_asyncio.test_server more reliable (#5338) 2018-01-26 01:30:57 -05:00
test_sslproto.py [3.7] bpo-33618: Enable TLS 1.3 in tests (GH-7079) (GH-7082) 2018-05-23 22:49:04 +02:00
test_streams.py bpo-32391: Implement StreamWriter.wait_closed() (#5281) 2018-01-25 00:30:30 +02:00
test_subprocess.py [3.7] bpo-32262: Fix typo in f-string (GH-7016) 2018-05-20 20:22:50 +02:00
test_tasks.py bpo-31787: Prevent refleaks when calling __init__() more than once (GH-3995) 2018-02-13 03:32:18 -08:00
test_transports.py Improve test coverage (#4924) 2017-12-19 08:51:16 +02:00
test_unix_events.py bpo-32622: Native sendfile on windows (GH-5565) 2018-02-25 09:10:58 -08:00
test_windows_events.py bpo-32327: Convert asyncio functions documented as coroutines to coroutines. (#4872) 2017-12-14 20:53:26 -05:00
test_windows_utils.py bpo-32273: Move asyncio.test_utils to test.test_asyncio (#4785) 2017-12-11 10:04:40 -05:00
utils.py [3.7] bpo-33618: Enable TLS 1.3 in tests (GH-7079) (GH-7082) 2018-05-23 22:49:04 +02:00