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 bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986) 2022-03-22 03:04:36 -07:00
__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 bpo-46425: fix direct invocation of asyncio tests (#30725) 2022-01-22 13:06:27 +02:00
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 Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253) 2022-02-10 14:57:20 +02:00
test_queues.py bpo-47076: Make asyncio.Queue stable on slow test boxes (GH-32040) 2022-03-22 16:00:23 +02:00
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 Remove trailing spaces (GH-31695) 2022-03-05 17:47:00 +02:00
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 bpo-46198: Fix test_asyncio.test_sslproto (GH-31801) 2022-03-10 13:36:22 -08:00
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 Fix warning: asyncio.events._event_loop_policy was modified by test_asyncio (GH-31253) 2022-02-10 14:57:20 +02:00
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 bpo-47038: Increase a test timeout for slow CI machines (GH-31951) 2022-03-17 02:54:36 +02:00
test_windows_events.py fix DeprecationWarning when running asyncio tests (GH-30486) 2022-01-22 13:20:10 +02:00
test_windows_utils.py
utils.py gh-93852: Add test.support.create_unix_domain_name() (#93914) 2022-06-17 13:16:51 +02:00