summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve test coverage (#4924)Andrew Svetlov2017-12-191-0/+1
|
* bpo-32356: idempotent pause_/resume_reading; new is_reading method. (#4914)Yury Selivanov2017-12-183-8/+47
|
* bpo-32348: Optimize asyncio.Future schedule/add/remove callback. (#4907)Yury Selivanov2017-12-182-27/+175
|
* bpo-32250: Implement asyncio.current_task() and asyncio.all_tasks() (#4799)Andrew Svetlov2017-12-161-23/+183
|
* bpo-27456: Ensure TCP_NODELAY is set on linux (#4231)Yury Selivanov2017-12-162-7/+27
|
* bpo-32311: Implement asyncio.create_task() shortcut (#4848)Andrew Svetlov2017-12-152-1/+39
| | | | | * Implement functionality * Add documentation
* bpo-32327: Convert asyncio functions documented as coroutines to coroutines. ↵Yury Selivanov2017-12-156-89/+84
| | | | (#4872)
* bpo-32314: Implement asyncio.run() (#4852)Yury Selivanov2017-12-141-0/+100
|
* bpo-32296: Unbreak tests on Windows (#4850)Yury Selivanov2017-12-131-4/+7
|
* bpo-32296: Implement asyncio.get_event_loop and _get_running_loop in C. (#4827)Yury Selivanov2017-12-131-20/+113
| | | | | | | | 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.
* Fix couple typos (#4839)Andrew Svetlov2017-12-131-1/+1
|
* bpo-32101: Fix tests for PYTHONDEVMODE=1 (#4821)Victor Stinner2017-12-122-9/+10
| | | | test_asycio: remove also aio_path which was used when asyncio was developed outside the stdlib.
* Add asyncio.get_running_loop() function. (#4782)Yury Selivanov2017-12-111-0/+6
|
* bpo-32273: Move asyncio.test_utils to test.test_asyncio (#4785)Yury Selivanov2017-12-1116-56/+525
|
* bpo-32262: Fix codestyle; use f-strings formatting where necessary. (#4775)Yury Selivanov2017-12-102-6/+7
|
* Skip test_read_pty_output test on macOS for poll and select. (#4774)Yury Selivanov2017-12-101-3/+1
| | | Starting with 10.13.2 the test hangs forever.
* bpo-32253: Deprecate with statement and bare await for asyncio locks (GH-4764)Andrew Svetlov2017-12-092-13/+47
| | | | | * Add test for 'with (yield from lock)' * Deprecate with statement for asyncio locks * Document the deprecation
* bpo-32193: Convert asyncio to async/await usage (#4753)Andrew Svetlov2017-12-089-450/+385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Convert asyncio/tasks.py to async/await * Convert asyncio/queues.py to async/await * Convert asyncio/test_utils.py to async/await * Convert asyncio/base_subprocess.py to async/await * Convert asyncio/subprocess.py to async/await * Convert asyncio/streams.py to async/await * Fix comments * Convert asyncio/locks.py to async/await * Convert asyncio.sleep to async def * Add a comment * Add missing news * Convert stubs from AbstrctEventLoop to async functions * Convert subprocess_shell/subprocess_exec * Convert connect_read_pipe/connect_write_pip to async/await syntax * Convert create_datagram_endpoint * Convert create_unix_server/create_unix_connection * Get rid of old style coroutines in unix_events.py * Convert selector_events.py to async/await * Convert wait_closed and create_connection * Drop redundant line * Convert base_events.py * Code cleanup * Drop redundant comments * Fix indentation * Add explicit tests for compatibility between old and new coroutines * Convert windows event loop to use async/await * Fix double awaiting of async function * Convert asyncio/locks.py * Improve docstring * Convert tests to async/await * Convert more tests * Convert more tests * Convert more tests * Convert tests * Improve test
* bpo-32166: Drop Python 3.4 code from asyncio (#4612)Andrew Svetlov2017-11-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | * Drop Python 3.4 code from asyncio * Fix notes * Add missing imports * Restore comment * Resort imports * Drop Python 3.4-3.5 specific code * Drop redunant check * Fix tests * Restore _COROUTINE_TYPES order * Remove useless code
* bpo-32154: Remove asyncio.windows_utils.socketpair (#4609)Victor Stinner2017-11-282-56/+6
|
* bpo-32154: Remove asyncio.selectors (#4605)Victor Stinner2017-11-284-4/+4
| | | | | | | | | | | | * Remove asyncio.selectors and asyncio._overlapped symbols from the namespace of the asyncio module * Replace "from asyncio import selectors" with "import selectors" * Replace "from asyncio import _overlapped" with "import _overlapped" asyncio.selectors was added to support Python 3.3, which doesn't have selectors in its standard library, and Python 3.4 in the same code base. Same rationale for asyncio._overlapped. Python 3.3 reached its end of life, and asyncio is no more maintained as a third party module on PyPI.
* asyncio: use directly socket.socketpair() (#4597)Victor Stinner2017-11-283-18/+6
| | | | | Since Python 3.5, socket.socketpair() is also available on Windows, and so can be used directly, rather than using asyncio.windows_utils.socketpair().
* asyncio: Fix BaseSelectorEventLoopTests (#4595)Victor Stinner2017-11-271-0/+2
| | | | Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X dev).
* bpo-32126: Skip asyncio test when sem_open() is not functional (GH-4559)xdegaye2017-11-261-0/+4
|
* bpo-28684: Remove useless import added by the previous commit (GH-4547)xdegaye2017-11-241-1/+0
|
* bpo-28684: asyncio tests handle PermissionError raised on binding unix ↵xdegaye2017-11-243-11/+17
| | | | | | | | | sockets (GH-4503) The test.support.skip_unless_bind_unix_socket() decorator is used to skip asyncio tests that fail because the platform lacks a functional bind() function for unix domain sockets (as it is the case for non root users on the recent Android versions that run now SELinux in enforcing mode).
* bpo-32066: Support pathlib.Path in create_unix_connection; sock arg should ↵Yury Selivanov2017-11-201-2/+10
| | | | be optional (#4447)
* bpo-32047: -X dev enables asyncio debug mode (#4418)Victor Stinner2017-11-202-0/+8
| | | | The new -X dev command line option now also enables asyncio debug mode.
* bpo-32069: Drop legacy SSL transport (#4451)Andrew Svetlov2017-11-182-431/+0
| | | | | | | | | | * Drop legacy SSL transport * Drop unused import * Fix Windows tests * Drop never executed on Python 3.4+ code
* bpo-32034: Make IncompleteReadError & LimitOverrunError pickleable #4409Yury Selivanov2017-11-151-0/+18
|
* bpo-32015: Asyncio looping during simultaneously socket read/write an… (#4386)Andrey Egorov2017-11-141-19/+59
| | | | | | | | | | | | * bpo-32015: Asyncio cycling during simultaneously socket read/write and reconnection * Tests fix * Tests fix * News add * Add new unit tests
* bpo-28369: Enhance transport socket check in add_reader/writer (#4365)Yury Selivanov2017-11-131-0/+70
|
* Rewrite asyncio test to be more meaningful (#4363)Yury Selivanov2017-11-101-11/+16
|
* bpo-31620: have asyncio/queues not leak memory when you've exceptions during ↵Suren Nihalani2017-11-071-0/+17
| | | | waiting (#3813)
* bpo-31970: Reduce performance overhead of asyncio debug mode. (#4314)Antoine Pitrou2017-11-071-1/+1
| | | | * bpo-31970: Reduce performance overhead of asyncio debug mode.
* Add asyncio.Handle.cancelled() method (#2388)Marat Sharafutdinov2017-11-071-4/+4
|
* [asyncio] bpo-30423: add regression test for orphan future causes ↵jimmylai2017-11-011-0/+16
| | | | | | | | "RuntimeError: Event loop stopped before Future completed." (#3295) * call remove_done_callback in finally section * [asyncio] bpo-30423 bug: add regression test for orphan future causes "RuntimeError: Event loop stopped before Future completed."
* bpo-31245: Asyncio unix socket datagram (#3164)Quentin Dawans2017-10-301-0/+11
|
* bpo-31819: Add AbstractEventLoop.sock_recv_into() (#4051)Antoine Pitrou2017-10-192-0/+31
| | | | | | | | * bpo-31819: Add AbstractEventLoop.sock_recv_into() * Add NEWS * Add doc
* bpo-31632: fix set_protocol() in _SSLProtocolTransport (#3817) (#3817)jlacoline2017-10-191-0/+8
|
* bpo-30406: Make async and await proper keywords (#1669)Jelle Zijlstra2017-10-061-6/+0
| | | Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
* bpo-31556: asyncio.wait_for can cancel futures faster with timeout <= 0 (#3703)Victor K2017-10-051-0/+70
|
* bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)Christian Heimes2017-09-151-8/+8
| | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31234: Add support.join_thread() helper (#3587)Victor Stinner2017-09-141-1/+1
| | | | join_thread() joins a thread but raises an AssertionError if the thread is still alive after timeout seconds.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-2/+0
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (#3076)Serhiy Storchaka2017-09-031-8/+37
|
* bpo-31250, test_asyncio: fix EventLoopTestsMixin.tearDown() (#3264)Victor Stinner2017-09-011-2/+2
| | | | | | | 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().
* bpo-31250, test_asyncio: fix dangling threads (#3252)Victor Stinner2017-09-012-1/+2
| | | | | | | * 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().
* bpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065)Victor Stinner2017-08-101-1/+3
|
* bpo-31061: fix crash in asyncio speedup module (GH-2966)Alexander Mohr2017-08-022-0/+27
|