MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

Methodtest_shielded_aclose
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:96
Functiontest_shielded_cleanup_after_cancel
Regression test for #832.
tests/test_taskgroups.py:934
Functiontest_shielded_deadline
()
tests/test_taskgroups.py:1196
Functiontest_shielding
()
tests/test_taskgroups.py:882
Functiontest_shielding_immediate_scope_cancelled
()
tests/test_taskgroups.py:1084
Functiontest_shielding_mutate
()
tests/test_taskgroups.py:1099
Methodtest_shorter_selectors
(self)
tests/test_itertools.py:378
Functiontest_single_cancellation_exc
Test that only a single cancellation exception bubbles out of the task group when case it was cancelled via an outer scope and no actual erro
tests/test_taskgroups.py:1621
Methodtest_single_thread
( self, provider: BlockingPortalProvider, anyio_backend_name: str )
tests/test_to_thread.py:404
Methodtest_single_thread_overlapping
( self, provider: BlockingPortalProvider, anyio_backend_name: str )
tests/test_to_thread.py:421
Methodtest_skips_empty_iterables
(self)
tests/test_itertools.py:234
Functiontest_sleep_forever
(fake_sleep: AsyncMock)
tests/test_eventloop.py:45
Functiontest_sleep_invalid_delay
Invalid delays raise ValueError on all backends.
tests/test_eventloop.py:58
Functiontest_sleep_until
(fake_sleep: AsyncMock)
tests/test_eventloop.py:33
Functiontest_sleep_until_in_past
(fake_sleep: AsyncMock)
tests/test_eventloop.py:39
Methodtest_sniffio
(self, anyio_backend_name: str)
tests/test_from_thread.py:275
Methodtest_sniffio
(self, anyio_backend_name: str)
tests/test_from_thread.py:333
Methodtest_socket_options
( self, family: AnyIPAddressFamily, server_addr: tuple[str, int] )
tests/test_sockets.py:448
Methodtest_socket_options
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1067
Methodtest_socket_options
(self, socket_path: Path)
tests/test_sockets.py:1981
Functiontest_something
(anyio_backend: str)
docs/snippets/testing/fixture.py:1
Functiontest_something
()
docs/snippets/testing/marker.py:7
Functiontest_sourceless_install
Test how importing the anyio and anyio.abc packages works in a sourceless (.py files compiled to .pyc and then removed) installation.
tests/test_lazyimport.py:39
Functiontest_start_already_closed
()
tests/test_taskgroups.py:173
Functiontest_start_called_twice
()
tests/test_taskgroups.py:195
Functiontest_start_cancel_after_error
Regression test for #517.
tests/test_taskgroups.py:471
Functiontest_start_cancelled
()
tests/test_taskgroups.py:294
Functiontest_start_cancels_parent_scope
Regression test for #685 / #710.
tests/test_taskgroups.py:1999
Functiontest_start_crash_after_started_call
()
tests/test_taskgroups.py:269
Methodtest_start_crash_after_started_call
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:949
Functiontest_start_crash_before_started_call
()
tests/test_taskgroups.py:258
Methodtest_start_crash_before_started_call
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:939
Functiontest_start_exception_delivery
(return_handle: bool)
tests/test_taskgroups.py:458
Functiontest_start_native_child_cancelled
()
tests/test_taskgroups.py:336
Functiontest_start_native_host_cancelled
()
tests/test_taskgroups.py:312
Functiontest_start_no_started_call
()
tests/test_taskgroups.py:283
Methodtest_start_no_started_call
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:962
Functiontest_start_no_value
()
tests/test_taskgroups.py:186
Methodtest_start_no_value
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:905
Methodtest_start_non_corofunc
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:927
Functiontest_start_not_cancelled_before_started_by_tg
()
tests/test_taskgroups.py:1948
Functiontest_start_parent_id
()
tests/test_taskgroups.py:1660
Functiontest_start_return_handle_cancel
()
tests/test_taskgroups.py:2029
Functiontest_start_return_handle_success
()
tests/test_taskgroups.py:2017
Functiontest_start_soon_after_error
()
tests/test_taskgroups.py:111
Functiontest_start_soon_closes_coroutines_when_create_task_fails
( suspend: bool, eager: bool )
tests/test_taskgroups.py:129
Functiontest_start_soon_parent_id
()
tests/test_taskgroups.py:1643
Functiontest_start_soon_while_running
()
tests/test_taskgroups.py:103
Functiontest_start_sync_wrapper
()
tests/test_taskgroups.py:209
Functiontest_start_sync_wrapper_called_twice
()
tests/test_taskgroups.py:223
Methodtest_start_task_soon
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:722
Methodtest_start_task_soon_cancel_after_stop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:813
Methodtest_start_task_soon_cancel_immediately
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:762
Methodtest_start_task_soon_cancel_later
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:749
Methodtest_start_task_soon_non_corofunc
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:738
Methodtest_start_task_soon_with_name
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:837
Methodtest_start_with_name
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:972
Methodtest_start_with_new_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:678
Methodtest_start_with_nonexistent_backend
(self)
tests/test_from_thread.py:706
Methodtest_start_with_thread_name
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:690
Functiontest_start_with_value
()
tests/test_taskgroups.py:249
Methodtest_start_with_value
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:916
Methodtest_start_without_thread_name
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:698
Methodtest_stat
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:883
Functiontest_statistics
()
tests/streams/test_memory.py:400
Methodtest_statistics
(self)
tests/test_synchronization.py:151
Methodtest_statistics
(self)
tests/test_synchronization.py:319
Methodtest_statistics
(self)
tests/test_synchronization.py:471
Methodtest_statistics
(self)
tests/test_synchronization.py:654
Methodtest_statistics
(self)
tests/test_synchronization.py:849
Functiontest_stderr_flood
Test that writing large amounts of data to stderr in the worker process won't deadlock the call. Regression test for the worker's stderr not
tests/test_to_process.py:74
Functiontest_stdin_input_both_passed
(tmp_path: Path)
tests/test_subprocesses.py:220
Methodtest_stem_property
(self)
tests/test_fileio.py:253
Methodtest_stepwise
(self)
tests/test_itertools.py:272
Methodtest_stepwise
(self)
tests/test_itertools.py:315
Functiontest_stopiteration
Test that raising StopIteration in a worker thread raises a RuntimeError on the caller.
tests/test_to_thread.py:381
Methodtest_strict_complete_batch
(self)
tests/test_itertools.py:164
Methodtest_strict_incomplete_async_iterable
(self)
tests/test_itertools.py:173
Methodtest_strict_incomplete_iterable
(self)
tests/test_itertools.py:167
Functiontest_submodule_access_without_direct_import
Test that accessing an anyio submodule via attribute access, without having imported it directly, imports the submodule.
tests/test_lazyimport.py:142
Functiontest_success
()
tests/test_taskgroups.py:72
Methodtest_suffix_property
(self)
tests/test_fileio.py:247
Methodtest_suffixes_property
(self)
tests/test_fileio.py:250
Methodtest_symlink_to
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:896
Functiontest_sync_close
()
tests/streams/test_memory.py:460
Functiontest_task_from_asyncgen_asend
(create_task: bool)
tests/test_taskgroups.py:2568
Functiontest_task_group_cancellation_consume
()
tests/test_signals.py:53
Functiontest_task_group_cancellation_open
()
tests/test_signals.py:38
Functiontest_task_in_sync_spawn_callback
()
tests/test_taskgroups.py:1536
Functiontest_task_name_custom_name
(spawner: str)
tests/test_taskgroups.py:2539
Functiontest_task_name_default
(spawner: str)
tests/test_taskgroups.py:2507
Functiontest_taskgroup_reentry
Test that entering a TaskGroup more than once raises RuntimeError.
tests/test_taskgroups.py:1893
Methodtest_tcp
(self, addr: str | IPv4Address | IPv6Address)
tests/test_sockets.py:3314
Functiontest_tcp_connectable
(mocker: MockerFixture)
tests/test_sockets.py:3287
Methodtest_tcp_factory
( self, families: Sequence[tuple[socket.AddressFamily, str]], free_tcp_port_factory: F
tests/test_pytest_plugin.py:796
Methodtest_tcp_listener_dualstack_disabled
( self, monkeypatch: MonkeyPatch )
tests/test_sockets.py:1304
Methodtest_tcp_listener_retry_after_partial_failure
Simulate a case where the first bind() succeeds with an ephemeral port, the second bind() fails with EADDRINUSE, and verify that crea
tests/test_sockets.py:1324
Methodtest_tcp_listener_same_port
( self, local_host: str | None, family: AnyIPAddressFamily, expected_listeners
tests/test_sockets.py:1279
Methodtest_tcp_listener_total_bind_failure
Test for a situation where bind() always fails when other listeners are being bound to the same port as the first listener which was
tests/test_sockets.py:1366
Methodtest_temporary_file
(self)
tests/test_tempfile.py:29
← previousnext →2,301–2,400 of 2,553, ranked by callers