aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_asyncio/test_events.py
Commit message (Collapse)AuthorAge
...
* bpo-40275: Avoid importing socket in test.support (GH-19603)Serhiy Storchaka2020-04-25
| | | | | | * Move socket related functions from test.support to socket_helper. * Import socket, nntplib and urllib.error lazily in transient_internet(). * Remove importing multiprocess.
* bpo-40115: Fix refleak in test_asyncio.test_run_in_executor_cancel() (GH-19282)Kyle Stanley2020-04-02
| | | Call explicitly self.loop.shutdown_default_executor().
* bpo-39191: Fix RuntimeWarning in asyncio test (GH-17863)Andrew Svetlov2020-01-07
| | | https://bugs.python.org/issue39191
* bpo-38614: Use test.support.SHORT_TIMEOUT constant (GH-17566)Victor Stinner2019-12-11
| | | | | | | | | | | | | | | Replace hardcoded timeout constants in tests with SHORT_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once. SHORT_TIMEOUT is 30 seconds by default, but it can be longer depending on --timeout command line option. The change makes almost all timeouts longer, except test_reap_children() of test_support which is made 2x shorter: SHORT_TIMEOUT should be enough. If this test starts to fail, LONG_TIMEOUT should be used instead. Uniformize also "from test import support" import in some test files.
* bpo-38614: Use default join_thread() timeout in tests (GH-17559)Victor Stinner2019-12-10
| | | | | Tests no longer pass a timeout value to join_thread() of test.support: use the default join_thread() timeout instead (SHORT_TIMEOUT constant of test.support).
* bpo-38614: Use test.support.LOOPBACK_TIMEOUT constant (GH-17554)Victor Stinner2019-12-10
| | | | | Replace hardcoded timeout constants in tests with LOOPBACK_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once.
* bpo-38107: Replace direct future and task contructor calls with factories in ↵Andrew Svetlov2019-09-11
| | | | asyncio tests (GH-15928)
* bpo-36373: Deprecate explicit loop parameter in all public asyncio APIs ↵Emmanuel Arias2019-09-10
| | | | | | | | | | | | | | | [locks] (GH-13920) This PR deprecate explicit loop parameters in all public asyncio APIs This issues is split to be easier to review. Third step: locks.py https://bugs.python.org/issue36373
* bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)Serhiy Storchaka2019-08-08
| | | | They now return NotImplemented for unsupported type of the other operand.
* Remove unused imports in tests (GH-14518)Victor Stinner2019-07-01
|
* bpo-29883: Asyncio proactor udp (GH-13440)Andrew Svetlov2019-05-28
| | | | | | Follow-up for #1067 https://bugs.python.org/issue29883
* bpo-37027: Return a proxy socket object from transp.get_extra_info('socket') ↵Yury Selivanov2019-05-27
| | | | | | | | | | (GH-13530) Return a safe to use proxy socket object from `transport.get_extra_info('socket')` https://bugs.python.org/issue37027
* bpo-36921: Deprecate @coroutine for sake of async def (GH-13346)Andrew Svetlov2019-05-16
| | | | | | The second attempt. Now deprecate `@coroutine` only, keep `yield from fut` as is. https://bugs.python.org/issue36921
* bpo-35934: Add socket.create_server() utility function (GH-11784)Giampaolo Rodola2019-04-09
|
* bpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio ↵Pablo Galindo2018-12-29
| | | | | | (GH-11337) There is a race condition regarding signal delivery in test_signal_handling_args for test_asyncio.test_events.KqueueEventLoopTests. The signal can be received at any moment outside the time window provided in the test. The fix is to wait for the signal to be received instead with a bigger timeout.
* bpo-35394: Add empty slots to abstract asyncio protocols (#10889)Andrew Svetlov2018-12-11
| | | | | | * bpo-35394: Add empty slots to abstract asyncio protocols * Add missing test file
* Extract sendfile tests into a separate test file (#9757)Andrew Svetlov2018-10-09
|
* Extract tests for sock_*() functions into a separate file (GH-9761)Andrew Svetlov2018-10-08
|
* bpo-34728: Fix asyncio tests to run under "-Werror" (GH-9661)Yury Selivanov2018-10-02
|
* Fix test_asyncio for AIX - do not call transport.get_extra_info('sockname') ↵Michael Felt2018-09-13
| | | | (#8907)
* bpo-34622: Extract asyncio exceptions into a separate module (GH-9141)Andrew Svetlov2018-09-11
|
* bpo-33562: Check the global asyncio event loop policy isn't set after any ↵Brett Cannon2018-06-01
| | | | tests (GH-7328)
* bpo-33353: test_asyncio use set_write_buffer_limits() (GH-7200)Victor Stinner2018-05-29
| | | | | | | Use transport.set_write_buffer_limits() in sendfile tests of test_asyncio to make sure that the protocol is paused after sending 4 KiB. Previously, test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed on FreeBSD if the DATA was smaller than the default limit of 64 KiB.
* bpo-32410: Avoid blocking on file IO in sendfile fallback code (GH-7172)Yury Selivanov2018-05-28
|
* bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)Yury Selivanov2018-05-28
|
* bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7161)Yury Selivanov2018-05-28
|
* bpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130)Yury Selivanov2018-05-28
| | | | | | | | | | | In this commit: * Support BufferedProtocol in set_protocol() and start_tls() * Fix proactor to cancel readers reliably * Update tests to be compatible with OpenSSL 1.1.1 * Clarify BufferedProtocol docs * Bump TLS tests timeouts to 60 seconds; eliminate possible race from start_serving * Rewrite test_start_tls_server_1
* bpo-33353: test_asyncio set SO_SNDBUF after connect (GH-7086)Victor Stinner2018-05-24
| | | | | 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.
* bpo-33353: test_asyncio uses smaller sendfile data (#7083)Victor Stinner2018-05-24
| | | | | | | | | | | | | 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.
* bpo-32517: fix test_read_pty_output() hangs on macOS 10.13.2+ (GH-6037) ↵Ned Deily2018-03-27
| | | | | | | | | | | | (GH-6113) test_asyncio hangs indefinitely on macOS 10.13.2+ on `read_pty_output()` using the KqueueSelector. Closing `proto.transport` (as is done in `write_pty_output()`) seems to fix it. (cherry picked from commit 12f74d8608c15cacd9d5786524e2be9ca36f007e) Co-authored-by: Nathan Henrie <n8henrie@users.noreply.github.com> Also, re-enable test_read_pty_output on macOS.
* bpo-32622: Native sendfile on windows (#5565)Andrew Svetlov2018-02-25
| | | * Support sendfile on Windows Proactor event loop naively.
* Implement TimerHandle.when() (#5473)Andrew Svetlov2018-02-01
|
* Fix tests if Python compiled without SSL (#5367)Andrew Svetlov2018-01-28
|
* bpo-32622: Enforce sendfile fallback policy for FALLBACK transports (#5364)Yury Selivanov2018-01-27
|
* bpo-32622: Implement loop.sendfile() (#5271)Andrew Svetlov2018-01-27
|
* bpo-31399: Let OpenSSL verify hostname and IP address (#3462)Christian Heimes2018-01-27
| | | | | | | | | | | | | | | bpo-31399: Let OpenSSL verify hostname and IP The ssl module now uses OpenSSL's X509_VERIFY_PARAM_set1_host() and X509_VERIFY_PARAM_set1_ip() API to verify hostname and IP addresses. * Remove match_hostname calls * Check for libssl with set1_host, libssl must provide X509_VERIFY_PARAM_set1_host() * Add documentation for OpenSSL 1.0.2 requirement * Don't support OpenSSL special mode with a leading dot, e.g. ".example.org" matches "www.example.org". It's not standard conform. * Add hostname_checks_common_name Signed-off-by: Christian Heimes <christian@python.org>
* bpo-32593: Drop FreeBSD 9 and older support (#5232)Victor Stinner2018-01-22
| | | Drop support of FreeBSD 9 and older.
* bpo-32410: Implement loop.sock_sendfile() (#4976)Andrew Svetlov2018-01-16
|
* bpo-32418: Postfix, raise NotImplementdError and close resources in tests ↵Andrew Svetlov2017-12-30
| | | | (#5052)
* bpo-32418: Add get_loop() method on Server, AbstractServer classes (#4997)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2017-12-30
| | | | | | * Add abstract get_loop() method to Server, AbstractServer classes. * Add test cases for get_loop() method in Server, AbstractServer classes * Add documentation for get_loop() method
* bpo-23749: Implement loop.start_tls() (#5039)Yury Selivanov2017-12-30
|
* Fix check for run_in_executor on closed loop. (#4996)Andrew Svetlov2017-12-23
|
* bpo-32357: Fix tests in refleak mode (#4989)Yury Selivanov2017-12-23
|
* bpo-29970: Make ssh_handshake_timeout None by default (#4939)Andrew Svetlov2017-12-20
| | | | | * Make ssh_handshake_timeout None by default. * Raise ValueError if ssl_handshake_timeout is used without ssl. * Raise ValueError if ssl_handshake_timeout is not positive.
* bpo-32327: Convert asyncio functions documented as coroutines to coroutines. ↵Yury Selivanov2017-12-14
| | | | (#4872)
* bpo-32296: Unbreak tests on Windows (#4850)Yury Selivanov2017-12-13
|
* bpo-32296: Implement asyncio.get_event_loop and _get_running_loop in C. (#4827)Yury Selivanov2017-12-13
| | | | | | | | asyncio.get_event_loop(), and, subsequently asyncio._get_running_loop() are one of the most frequently executed functions in asyncio. They also can't be sped up by third-party event loops like uvloop. When implemented in C they become 4x faster.
* Add asyncio.get_running_loop() function. (#4782)Yury Selivanov2017-12-11
|
* bpo-32273: Move asyncio.test_utils to test.test_asyncio (#4785)Yury Selivanov2017-12-11
|
* Skip test_read_pty_output test on macOS for poll and select. (#4774)Yury Selivanov2017-12-10
| | | Starting with 10.13.2 the test hangs forever.