Steele Farnsworth
2c7209a3bd
gh-114091: Reword error message for unawaitable types ( #114090 )
...
Reword error message for unawaitable types.
2024-06-17 20:18:17 +05:30
Kumar Aditya
adaed17341
GH-102748: remove legacy support for generator based coroutines from `asyncio.iscoroutine` ( #102749 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-16 20:28:10 +05:30
Illia Volochii
a1092f6249
bpo-43216: Remove @asyncio.coroutine (GH-26369)
...
Remove the @asyncio.coroutine decorator
enabling legacy generator-based coroutines to be compatible with async/await
code; remove asyncio.coroutines.CoroWrapper used for wrapping
legacy coroutine objects in the debug mode.
The decorator has been deprecated
since Python 3.8 and the removal was initially scheduled for Python 3.10.
2021-07-01 15:13:59 +02:00
Yurii Karabas
0ec34cab9d
bpo-42392: Remove loop parameter form asyncio locks and Queue ( #23420 )
...
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2020-11-24 20:08:54 +02:00
Andrew Svetlov
90d9ba6ef1
bpo-34793: Drop old-style context managers in asyncio.locks (GH-17533)
2020-02-01 13:12:52 +02:00
Yury Selivanov
6758e6e12a
bpo-38242: Revert "bpo-36889: Merge asyncio streams (GH-13251)" ( #16482 )
...
See https://bugs.python.org/issue38242 for more details
2019-09-29 21:59:55 -07:00
Andrew Svetlov
9aee90018a
bpo-38107: Replace direct future and task contructor calls with factories in asyncio tests (GH-15928)
2019-09-11 16:07:37 +03:00
Andrew Svetlov
12c122ae95
bpo-38066: Hide internal Stream methods (GH-15762)
...
feed_eof(), feed_data(), set_exception(), and set_transport() are prefixed with underscore now.
https://bugs.python.org/issue38066
2019-09-10 05:56:14 -07:00
Emmanuel Arias
537877d85d
bpo-36373: Deprecate explicit loop parameter in all public asyncio APIs [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
2019-09-10 03:55:07 -07:00
Victor Stinner
8f4ef3b019
Remove unused imports in tests (GH-14518)
2019-07-01 18:28:25 +02:00
Andrew Svetlov
23b4b697e5
bpo-36889: Merge asyncio streams (GH-13251)
...
https://bugs.python.org/issue36889
2019-05-27 12:56:22 -07:00
Andrew Svetlov
68b34a7204
bpo-36921: Deprecate @coroutine for sake of async def (GH-13346)
...
The second attempt. Now deprecate `@coroutine` only, keep `yield from fut` as is.
https://bugs.python.org/issue36921
2019-05-16 07:52:10 -07:00
Xtreak
79972f1fad
bpo-36884: Fix DeprecationWarning in test_asyncio StreamReader instantiation (GH-13243)
...
https://bugs.python.org/issue36884
2019-05-11 01:45:16 -07:00
Yury Selivanov
9012a0fb4c
bpo-34728: Fix asyncio tests to run under "-Werror" (GH-9661)
2018-10-02 13:53:06 -04:00
Brett Cannon
8425de4147
bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328)
2018-06-01 20:34:09 -07:00
Nathaniel J. Smith
fc2f407829
bpo-32591: Add native coroutine origin tracking ( #5250 )
...
* Add coro.cr_origin and sys.set_coroutine_origin_tracking_depth
* Use coroutine origin information in the unawaited coroutine warning
* Stop using set_coroutine_wrapper in asyncio debug mode
* In BaseEventLoop.set_debug, enable debugging in the correct thread
2018-01-21 09:44:07 -05:00
Yury Selivanov
558aa30f79
bpo-32357: Fix tests in refleak mode ( #4989 )
2017-12-23 12:44:29 -05:00
Yury Selivanov
3e9751819a
bpo-32273: Move asyncio.test_utils to test.test_asyncio ( #4785 )
2017-12-11 10:04:40 -05:00
Andrew Svetlov
28d8d14013
bpo-32253: Deprecate with statement and bare await for asyncio locks (GH-4764)
...
* Add test for 'with (yield from lock)'
* Deprecate with statement for asyncio locks
* Document the deprecation
2017-12-09 20:00:05 +02:00
Victor Stinner
d6debb24e0
bpo-29919: Remove unused imports found by pyflakes ( #137 )
...
Make also minor PEP8 coding style fixes on modified imports.
2017-03-27 16:05:26 +02:00
Yury Selivanov
600a349781
Issue #28613 : Fix get_event_loop() to return the current loop
...
when called from coroutines or callbacks.
2016-11-04 14:29:28 -04:00
Guido van Rossum
1a316e82f6
Sync asyncio with upstream git repo (conditional import in test_pep492.py).
2015-12-12 17:01:47 -08:00
Yury Selivanov
576fe71c12
asyncio: Error if awaiting in parallel on the same coroutine
...
See https://github.com/python/asyncio/pull/293 for details.
2015-11-18 12:40:26 -05:00
Yury Selivanov
7ca6c55a4e
Issue #24867 : Fix asyncio.Task.get_stack() for 'async def' coroutines
2015-08-17 14:46:51 -04:00
Yury Selivanov
6d0c4c38d1
asyncio.test_pep492: Add a test for asyncio.iscoroutinefunction
2015-08-05 14:47:33 -04:00
Yury Selivanov
00e3372358
Issue #24325 , #24400 : Add more unittests for types.coroutine; tweak wrapper implementation.
2015-06-24 11:44:51 -04:00
Yury Selivanov
fcba97242b
Issue #24495 , #24400 : Test asyncio.Task.repr in debug mode
2015-06-24 10:55:12 -04:00
Yury Selivanov
5ac716251f
Fix asyncio unittests in debug mode
2015-06-24 10:47:44 -04:00
Yury Selivanov
8f1c99321b
Issue #24400 : Fix CoroWrapper for 'async def' coroutines
2015-06-24 10:32:22 -04:00
Yury Selivanov
e42cc38639
Issue 24017: Add a test for CoroWrapper and 'async def' coroutines
2015-05-31 21:44:05 -04:00
Yury Selivanov
439c5fe3ae
Issue 24004: Fix DeprecationWarning in a unittest
2015-05-31 11:28:35 -04:00
Yury Selivanov
ad583a8e6d
Issue 24004: Add a unittest for @asyncio.coroutine supporting Awaitables
2015-05-30 21:04:37 -04:00
Yury Selivanov
56fc614025
Issue 24315: Make collections.abc.Coroutine derived from Awaitable
2015-05-29 09:01:29 -04:00
Yury Selivanov
c41632a856
asyncio/tests: Drop unused import.
2015-05-13 15:37:48 -04:00
Yury Selivanov
6c792bd65a
asyncio: Add a test for asyncio.iscoroutine().
...
Test that asyncio.iscoroutine() supports 'async def' coroutines and
collections.abc.Coroutine types.
2015-05-13 15:34:12 -04:00
Yury Selivanov
33c6b569b7
Issue 24179: Support 'async for' for asyncio.StreamReader.
2015-05-13 14:23:29 -04:00
Yury Selivanov
29f88c22e6
Issue 24178: support 'async with' for asyncio locks.
2015-05-13 14:10:38 -04:00