mirror of
https://github.com/python/cpython.git
synced 2026-05-23 19:01:53 +00:00
asyncio.TaskGroup and asyncio.Timeout classes now raise proper RuntimeError if they are improperly used. * When they are used without entering the context manager. * When they are used after finishing. * When the context manager is entered more than once (simultaneously or sequentially). * If there is no current task when entering the context manager. They now remain in a consistent state after an exception is thrown, so subsequent operations can be performed correctly (if they are allowed). Co-authored-by: James Hilton-Balfe <gobot1234yt@gmail.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| echo.py | ||
| echo2.py | ||
| echo3.py | ||
| functional.py | ||
| test_base_events.py | ||
| test_buffered_proto.py | ||
| test_context.py | ||
| test_eager_task_factory.py | ||
| test_events.py | ||
| test_futures.py | ||
| test_futures2.py | ||
| test_locks.py | ||
| test_pep492.py | ||
| test_proactor_events.py | ||
| test_protocols.py | ||
| test_queues.py | ||
| test_runners.py | ||
| test_selector_events.py | ||
| test_sendfile.py | ||
| test_server.py | ||
| test_sock_lowlevel.py | ||
| test_ssl.py | ||
| test_sslproto.py | ||
| test_streams.py | ||
| test_subprocess.py | ||
| test_taskgroups.py | ||
| test_tasks.py | ||
| test_threads.py | ||
| test_timeouts.py | ||
| test_transports.py | ||
| test_unix_events.py | ||
| test_waitfor.py | ||
| test_windows_events.py | ||
| test_windows_utils.py | ||
| utils.py | ||