summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30280: Cleanup threads in ayncio tests (#2501) (#2512)Victor Stinner2017-06-301-5/+3
| | | | | | | | | | | | | | | | | * bpo-30280: asyncio now cleans up threads asyncio base TestCase now uses threading_setup() and threading_cleanup() of test.support to cleanup threads. * asyncio: Fix TestBaseSelectorEventLoop cleanup bpo-30280: TestBaseSelectorEventLoop of test.test_asyncio.test_selector_events now correctly closes the event loop: cleanup its executor to not leak threads. Don't override the close() method of the event loop, only override the_close_self_pipe() method. (cherry picked from commit b9030674624c181d6e9047cdb14ad65bb6c84c66)
* Revert "[3.5] bpo-29406: asyncio SSL contexts leak sockets after calling ↵Yury Selivanov2017-06-111-34/+0
| | | | | close with certain servers (GH-409) (#2063)" (#2113) This reverts commit 1395c58ef7b98f087d1d5d50962fe7a8c032f34d.
* bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. ↵Yury Selivanov2017-06-112-0/+27
| | | | (#2110)
* [3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with ↵Yury Selivanov2017-06-101-0/+34
| | | | | | | | | | | | | | | certain servers (GH-409) (#2063) * bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (#409) (cherry picked from commit a608d2d5a7f1aabe9bcbfc220135c5e126189390) * [3.5] bpo-29406: asyncio SSL contexts leak sockets after calling close with certain servers (GH-409) * asyncio SSL contexts leak sockets after calling close with certain servers * cleanup _shutdown_timeout_handle on _fatal_error. (cherry picked from commit a608d2d5a7f1aabe9bcbfc220135c5e126189390)
* Closing transport during handshake process leaks socket (#480) (#2045)Yury Selivanov2017-06-091-0/+15
|
* Fix waiter cancellation in asyncio.Lock (#1031) (#2038)Yury Selivanov2017-06-091-0/+22
| | | | | | Avoid a deadlock when the waiter who is about to take the lock is cancelled Issue #27585
* bpo-30110: fix resource leak in test_asyncio.test_events (#1413) (#1585)Xiang Zhang2017-05-151-1/+3
|
* bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1547)INADA Naoki2017-05-121-0/+18
| | | | | | | | | | | | | | | | | | * bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1097) when there are no more `await` or `yield (from)` before return in coroutine, cancel was ignored. example: async def coro(): asyncio.Task.current_task().cancel() return 42 ... res = await coro() # should raise CancelledError (cherry picked from commit 991adca012f5e106c2d4040ce619c696ba6f9c46) * fix test
* bpo-29742: asyncio get_extra_info() throws exception (#525) (#646)Yury Selivanov2017-03-121-0/+12
|
* bpo-29704: Fix asyncio.SubprocessStreamProtocol closing (#405)Seth M. Larson2017-03-031-0/+24
|
* bpo-29703: asyncio: Fix creating new event loops in child processes. (#411)Yury Selivanov2017-03-031-0/+22
|
* Issue #28990: Fix SSL hanging if connection is closed before handshake ↵Yury Selivanov2016-12-161-0/+10
| | | | completed.
* Issue #28652: Partially rollback previous changesYury Selivanov2016-11-211-6/+4
| | | | Allow AF_UNIX in create_server & create_connection
* Issue #28704: Fix create_unix_server to support Path-like objectsYury Selivanov2016-11-151-0/+10
|
* Issue #28703: Fix asyncio.iscoroutinefunction to handle Mock objects.Yury Selivanov2016-11-151-0/+2
|
* Issue #28652: Make loop methods reject socket kinds they do not support.Yury Selivanov2016-11-093-11/+90
|
* asyncio: Fix _format_coroutine for coroutine-like objects w/o __name__Yury Selivanov2016-11-091-2/+6
| | | | | | Some built-in coroutine-like objects might not have __name__ or __qualname__. A good example of such are 'asend', 'aclose' and 'athrow' coroutine methods of asynchronous generators.
* Issue #28613: Expose asyncio._get_running_loop() and _set_running_loop()Yury Selivanov2016-11-081-0/+4
|
* Issue #28634: Fix asyncio.isfuture() to support mocksYury Selivanov2016-11-071-0/+23
|
* Issue #28613: Fix get_event_loop() to return the current loopYury Selivanov2016-11-0414-0/+76
| | | | when called from coroutines or callbacks.
* Issue #28600: Optimize loop.call_soon().Yury Selivanov2016-11-032-35/+8
| | | | | Run expensive type checks only in debug mode. In addition, stop supporting passing handles to loop.run_in_executor.
* Issue #26923: Fix asyncio.Gather to refuse being cancelled once all children ↵Yury Selivanov2016-10-211-0/+30
| | | | | | are done. Patch by Johannes Ebke.
* Issue #27972: Prohibit Tasks to await on themselves.Yury Selivanov2016-10-091-0/+11
|
* Issue #28399: Remove UNIX socket from FS before binding.Yury Selivanov2016-10-091-5/+7
| | | | Patch by Коренберг Марк.
* asyncio: Only allow Unix Stream sockets for loop.create_unix_server/connectionYury Selivanov2016-10-071-1/+10
|
* Issue #28372: Fix asyncio to support formatting of non-python coroutinesYury Selivanov2016-10-051-0/+34
|
* Issue #28371: Deprecate passing asyncio.Handles to run_in_executor.Yury Selivanov2016-10-051-3/+6
|
* Issue #28369: Raise an error when transport's FD is used with add_readerYury Selivanov2016-10-052-44/+44
|
* Issue #28368: Refuse monitoring processes if the child watcher has no loop ↵Yury Selivanov2016-10-052-1/+20
| | | | | | attached. Patch by Vincent Michel.
* Issue #28283: Remove flaky test test_sock_connect_sock_write_race againBerker Peksag2016-10-011-86/+0
| | | | It was added back in 53a578f51f21.
* Misc asyncio improvements from upstreamGuido van Rossum2016-09-303-20/+148
|
* Issue #28283: Remove flaky test test_sock_connect_sock_write_raceBerker Peksag2016-09-271-86/+0
|
* test_asynico: fix test_sock_connect_sock_write_race()Victor Stinner2016-09-211-1/+1
| | | | Issue #28176: Increase timeout from 10 seconds to 60 seconds.
* Issue #28176: Increase timeout for test_sock_connect_sock_write_raceBerker Peksag2016-09-171-1/+1
|
* Issue #28176: Fix callbacks race in asyncio.SelectorLoop.sock_connect.Yury Selivanov2016-09-151-23/+101
|
* Issue #26909: Fix slow pipes IO in asyncio.Yury Selivanov2016-09-151-27/+22
| | | | Patch by INADA Naoki.
* Issue #26654: Inspect functools.partial in asyncio.Handle.__repr__.Yury Selivanov2016-09-151-1/+8
| | | | Patch by iceboy.
* Issue #28174: Handle when SO_REUSEPORT isn't properly supported (asyncio)Yury Selivanov2016-09-151-0/+11
| | | | Patch by Seth Michael Larson.
* Issue #27906: Fix socket accept exhaustion during high TCP traffic.Yury Selivanov2016-09-152-1/+15
| | | | Patch by Kevin Conway.
* asyncio: Add set_protocol / get_protocol methods to TransportsYury Selivanov2016-09-121-0/+1
|
* Use raw string for regexpGuido van Rossum2016-09-101-1/+1
|
* Merge asyncio upstream.Guido van Rossum2016-09-092-1/+69
|
* Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Martin Panter2016-09-071-2/+2
|
* Don't select for read on character devices in _UnixWritePipeTransport.Guido van Rossum2016-08-311-0/+75
| | | | Upstream https://github.com/python/asyncio/pull/374 by Ron Frederick.
* Issue #27907: variable rename. (Ville Skyttä)Guido van Rossum2016-08-311-2/+2
|
* Issue #27392: Add loop.connect_accepted_socket().Yury Selivanov2016-07-121-0/+79
| | | | Patch by Jim Fulton.
* asyncio: Use socket specs for getaddrinfo() in sock_connect()Yury Selivanov2016-06-281-0/+11
| | | | Patch by Martin Richard. GH PR #365.
* asyncio: Fix NameError in sslproto _fatal_error()Yury Selivanov2016-06-281-0/+16
| | | | Patch by Richard Walker.
* Issue #27136: Change test to use ::1 for better OS X Tiger compatibilityMartin Panter2016-06-131-4/+4
|
* Issue #22970: asyncio: Fix inconsistency cancelling Condition.wait.Yury Selivanov2016-06-111-0/+25
| | | | Patch by David Coles.