Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agronholm/anyio
/ functions
Functions
2,553 in github.com/agronholm/anyio
⨍
Functions
2,553
◇
Types & classes
300
↳
Endpoints
18
Function
test_exception_when_future_not_finished
()
tests/test_futures.py:90
Function
test_exceptions_after_subprocess_closes_standard_streams
()
tests/test_subprocesses.py:292
Function
test_exec_while_pruning
Test that in the case when one or more idle workers are pruned, the originally selected idle worker is re-added to the queue of idle workers.
tests/test_to_process.py:116
Method
test_exists
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:294
Method
test_exists_follow_symlinks
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:367
Method
test_exit_before_enter
(self)
tests/test_contextmanagers.py:117
Method
test_exit_before_enter
(self)
tests/test_contextmanagers.py:220
Method
test_exit_with_cancellation
Test that the directory is cleaned up even if the host task is cancelled while exiting the context manager. ``__aexit__`` ru
tests/test_tempfile.py:229
Method
test_expanduser
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:298
Method
test_extra_attributes
( self, server_sock: socket.socket, server_addr: tuple[str, int], family: AnyI
tests/test_sockets.py:247
Method
test_extra_attributes
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:993
Method
test_extra_attributes
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1425
Method
test_extra_attributes
(self, socket_path: Path)
tests/test_sockets.py:1949
Method
test_extra_attributes
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2204
Method
test_extra_attributes
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2472
Method
test_extra_attributes
(self, socket_path: Path)
tests/test_sockets.py:2883
Method
test_extra_attributes
( self, socket_path: Path, peer_socket_path: Path, peer_sock: socket.socket,
tests/test_sockets.py:3096
Method
test_extra_attributes
( self, request: pytest.FixtureRequest, server_context: ssl.SSLContext, client
tests/streams/test_tls.py:176
Method
test_extra_attributes
( self, client_context: ssl.SSLContext, server_context: ssl.SSLContext, ca: CA )
tests/streams/test_tls.py:565
Method
test_extra_attributes
(self, file_path: Path)
tests/streams/test_file.py:83
Method
test_extra_attributes
(self, file_path: Path)
tests/streams/test_file.py:134
Function
test_fail_after
(delay: float)
tests/test_taskgroups.py:714
Function
test_fail_after_after_cancellation
()
tests/test_taskgroups.py:738
Function
test_fail_after_cancelled_before_deadline
Test that fail_after() won't raise TimeoutError if its scope is cancelled before the deadline.
tests/test_taskgroups.py:753
Function
test_fail_after_no_timeout
()
tests/test_taskgroups.py:729
Function
test_fail_after_reason
()
tests/test_taskgroups.py:775
Function
test_fail_after_scope_cancelled_before_timeout
()
tests/test_taskgroups.py:768
Function
test_fail_at
(delay: float)
tests/test_taskgroups.py:827
Function
test_fail_at_no_timeout
()
tests/test_taskgroups.py:841
Function
test_fail_at_reason
()
tests/test_taskgroups.py:850
Function
test_failing_child_task_cancels_host
()
tests/test_taskgroups.py:557
Function
test_failing_host_task_cancels_children
()
tests/test_taskgroups.py:574
Method
test_fast_acquire
Test that fast_acquire=True does not yield back control to the event loop when there is no contention.
tests/test_synchronization.py:73
Method
test_fast_acquire
Test that fast_acquire=True does not yield back control to the event loop when there is no contention.
tests/test_synchronization.py:569
Method
test_fast_acquire_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:587
Function
test_feed_data
()
tests/streams/test_buffered.py:171
Method
test_finite_cases
(self)
tests/test_itertools.py:834
Method
test_float_infinity_outside_event_loop
(self)
tests/test_synchronization.py:997
Method
test_free_tcp_port
( self, families: Sequence[tuple[socket.AddressFamily, str]], free_tcp_port: int )
tests/test_pytest_plugin.py:825
Method
test_free_udp_port
( self, families: Sequence[tuple[socket.AddressFamily, str]], free_udp_port: int )
tests/test_pytest_plugin.py:833
Method
test_from_async
Test that portals don't deadlock when started/used from async code. Note: This test will deadlock if there is a regression. A deadlo
tests/test_from_thread.py:1040
Method
test_from_async_iterable
(self)
tests/test_itertools.py:215
Method
test_from_iterable
(self)
tests/test_itertools.py:208
Method
test_from_iterable_empty
(self)
tests/test_itertools.py:212
Method
test_from_socket
( self, family: AnyIPAddressFamily, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:946
Method
test_from_socket
( self, family: AnyIPAddressFamily, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:1245
Method
test_from_socket
( self, socket_path: Path, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:1885
Method
test_from_socket
(self, sock_or_fd_factory: SockFdFactoryProtocol)
tests/test_sockets.py:2046
Method
test_from_socket
( self, family: AnyIPAddressFamily, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:2385
Method
test_from_socket
( self, family: AnyIPAddressFamily, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:2638
Method
test_from_socket
(self, sock_or_fd_factory: SockFdFactoryProtocol)
tests/test_sockets.py:3029
Method
test_from_socket
(self, sock_or_fd_factory: SockFdFactoryProtocol)
tests/test_sockets.py:3257
Method
test_from_socket_not_a_socket
(self)
tests/test_sockets.py:954
Method
test_from_socket_not_bound
( self, family: AnyIPAddressFamily, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:1253
Method
test_from_socket_not_connected
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:983
Method
test_from_socket_not_connected
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:1918
Method
test_from_socket_not_connected
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:2658
Method
test_from_socket_not_connected
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:3279
Method
test_from_socket_pass_file_fd
(self, tmp_path: Path)
tests/test_sockets.py:961
Method
test_from_socket_wrong_address_family
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:1906
Method
test_from_socket_wrong_socket_type
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:971
Method
test_from_socket_wrong_socket_type
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:1894
Method
test_from_socket_wrong_socket_type
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:2393
Method
test_from_socket_wrong_socket_type
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:2646
Method
test_from_socket_wrong_socket_type
( self, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:3035
Method
test_from_socket_wrong_socket_type
( self, socket_path: Path, sock_or_fd_factory: SockFdFactoryProtocol )
tests/test_sockets.py:3267
Method
test_from_uri
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:278
Method
test_fullmatch
(self)
tests/test_fileio.py:671
Function
test_func_as_parametrize_param_name
Test that "func" can be used as a parameter name in `pytest.mark.parametrize` when using the pytest plugin.
tests/test_pytest_plugin.py:871
Method
test_future_cancellation_does_not_block
( self, target_backend: str )
tests/test_from_thread.py:573
Function
test_gather_propagates_exception
()
tests/test_concurrency_utils.py:31
Function
test_gather_results_in_order
()
tests/test_concurrency_utils.py:15
Method
test_get_current_task
Regression test for #773: get_current_task() must raise a clear RuntimeError, not an opaque weakref TypeError, when called from a
tests/test_from_thread.py:343
Function
test_get_running_tasks
()
tests/test_debugging.py:76
Method
test_get_set
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any], )
tests/test_lowlevel.py:90
Function
test_getaddrinfo
()
tests/test_sockets.py:3364
Function
test_getaddrinfo_ipv6_disabled
()
tests/test_sockets.py:3395
Function
test_getaddrinfo_ipv6addr
( sock_type: Literal[socket.SocketKind.SOCK_STREAM, socket.SocketKind.SOCK_DGRAM], event_loop_implemen
tests/test_sockets.py:3372
Function
test_getnameinfo
()
tests/test_sockets.py:3401
Function
test_gettemp_functions
()
tests/test_tempfile.py:316
Method
test_glob
( self, populated_tmpdir: Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:512
Method
test_glob_case_sensitive
(self, populated_tmpdir: Path)
tests/test_fileio.py:538
Method
test_glob_recurse_symlinks
(self, populated_tmpdir: Path)
tests/test_fileio.py:565
Method
test_group
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:725
Method
test_group_follow_symlinks
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:739
Method
test_handshake_fail
( self, server_context: ssl.SSLContext, caplog: pytest.LogCaptureFixture )
tests/streams/test_tls.py:521
Method
test_happy_eyeballs
( self, local_addr: str, expected_client_addr: str, fake_localhost_dns: None )
tests/test_sockets.py:464
Method
test_happy_eyeballs_refcycles
Test derived from https://github.com/python/cpython/pull/124859
tests/test_sockets.py:537
Method
test_hardlink_to
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:691
Method
test_has_initial
(self)
tests/test_functools.py:444
Method
test_hash
(self)
tests/test_fileio.py:159
Method
test_home
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:304
Function
test_host_exception
()
tests/test_taskgroups.py:496
Function
test_hypothesis_function_mark
(testdir: Pytester)
tests/test_pytest_plugin.py:391
Function
test_hypothesis_module_mark
(testdir: Pytester)
tests/test_pytest_plugin.py:358
Function
test_hypothesis_multiple_backends
(testdir: Pytester)
tests/test_pytest_plugin.py:433
Function
test_hypothesis_multiple_backends_in_class
(testdir: Pytester)
tests/test_pytest_plugin.py:454
Function
test_identical_sys_path
Test that partial() can be used to pass keyword arguments.
tests/test_to_process.py:34
Function
test_incomplete_character_at_eof
( errors: str, expected: AbstractContextManager[object] )
tests/streams/test_text.py:42
Method
test_increase_tokens
(self)
tests/test_synchronization.py:819
← previous
next →
1,901–2,000 of 2,553, ranked by callers