cpython/Lib/test/test_asyncio
Cyker Way 24e0379624
gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (#93222)
The main problem was that an unluckily timed task cancellation could cause
the semaphore to be stuck. There were also doubts about strict FIFO ordering
of tasks allowed to pass.

The Semaphore implementation was rewritten to be more similar to Lock.
Many tests for edge cases (including cancellation) were added.
2022-09-22 09:34:45 -07:00
..
__init__.py
__main__.py
echo.py
echo2.py
echo3.py
functional.py
test_base_events.py gh-93973: Add all_errors to asyncio.create_connection (#93974) 2022-09-04 18:33:50 -07:00
test_buffered_proto.py
test_context.py
test_events.py gh-84623: Remove unused imports in tests (#93772) 2022-06-13 16:56:03 +02:00
test_futures.py Simplify testing the warning filename (GH-91868) 2022-04-24 10:23:59 +03:00
test_futures2.py bpo-45924: Fix asyncio incorrect traceback when future's exception is raised multiple times (GH-30274) 2022-07-11 13:32:11 +01:00
test_locks.py gh-90155: Fix bug in asyncio.Semaphore and strengthen FIFO guarantee (#93222) 2022-09-22 09:34:45 -07:00
test_pep492.py
test_proactor_events.py Revert "gh-87079: Warn on unintended signal wakeup fd override in asyncio (#96807)" (#96898) 2022-09-17 14:12:45 -07:00
test_protocols.py
test_queues.py
test_runners.py GH-95899: fix asyncio.Runner to call set_event_loop only once (#95900) 2022-08-15 10:02:47 -07:00
test_selector_events.py gh-72889: Remove redundant mock.Mock()._is_coroutine = False workarounds (#94926) 2022-07-17 10:21:58 -07:00
test_sendfile.py
test_server.py
test_sock_lowlevel.py gh-84623: Remove unused imports in tests (#93772) 2022-06-13 16:56:03 +02:00
test_ssl.py gh-95573: Reduce test data size in test_asyncio/test_ssl.py (GH-95668) 2022-08-05 10:45:36 +02:00
test_sslproto.py
test_streams.py GH-74116: Allow multiple drain waiters for asyncio.StreamWriter (GH-94705) 2022-08-29 11:31:11 -07:00
test_subprocess.py gh-95010: Fix asyncio GenericWatcherTests.test_create_subprocess_fails_with_inactive_watcher (GH-95009) 2022-07-21 14:35:20 +03:00
test_taskgroups.py GH-95704: Don't suppress errors from tasks when TG is cancelled (#95761) 2022-08-16 18:23:06 -07:00
test_tasks.py gh-91323: Revert "Allow overriding a future compliance check in asyncio.Task (GH-32197)" (GH-95442) 2022-08-04 15:51:38 +02:00
test_threads.py bpo-47104: Rewrite asyncio.to_thread tests to use IsolatedAsyncioTestCase (GH-32086) 2022-03-23 23:17:07 +02:00
test_timeouts.py gh-95051: ensure that timeouts scheduled with asyncio.Timeout that have already expired are deliverered promptly (#95109) 2022-07-24 13:18:05 -07:00
test_transports.py
test_unix_events.py Revert "gh-87079: Warn on unintended signal wakeup fd override in asyncio (#96807)" (#96898) 2022-09-17 14:12:45 -07:00
test_waitfor.py
test_windows_events.py
test_windows_utils.py
utils.py gh-93852: Add test.support.create_unix_domain_name() (#93914) 2022-06-17 13:16:51 +02:00