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_connect_tcp_getaddrinfo_context
See https://github.com/agronholm/anyio/issues/815
tests/test_sockets.py:3410
Method
test_connect_tcp_with_local_port
( self, server_sock: socket.socket, server_addr: tuple[str, int], family: AnyI
tests/test_sockets.py:517
Method
test_connect_tcp_with_tls
( self, server_context: SSLContext, client_context: SSLContext, server_sock: s
tests/test_sockets.py:823
Method
test_connect_tcp_with_tls_cert_check_fail
( self, server_context: SSLContext, server_sock: socket.socket, server_addr: t
tests/test_sockets.py:851
Method
test_connect_tcp_with_tls_unicode_hostname
Test that connect_tcp() forwards the target host name to ``TLSStream.wrap()`` as-is, deferring the matching against the peer certific
tests/test_sockets.py:878
Method
test_connecting_using_bytes
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1867
Method
test_connecting_with_non_utf8
(self, socket_path: Path)
tests/test_sockets.py:1876
Method
test_connection_refused
( self, target: str, exception_class: type[ExceptionGroup | ConnectionRefusedError],
tests/test_sockets.py:562
Method
test_consumes_first_failing_element
(self)
tests/test_itertools.py:931
Method
test_consumes_start_items_when_stop_is_not_greater
(self)
tests/test_itertools.py:606
Method
test_context_manager
(self)
tests/test_lowlevel.py:141
Method
test_context_manager
(self)
tests/test_tempfile.py:197
Method
test_contextmanager
(self)
tests/test_contextmanagers.py:60
Method
test_contextmanager
(self)
tests/test_contextmanagers.py:156
Method
test_contextmanager
(self)
tests/test_synchronization.py:34
Method
test_contextmanager
(self)
tests/test_synchronization.py:353
Method
test_contextmanager
(self)
tests/test_synchronization.py:542
Function
test_contextvar_propagation
()
tests/test_to_thread.py:219
Method
test_contextvar_propagation
(self, anyio_backend_name: str)
tests/test_from_thread.py:262
Method
test_contextvar_propagation
(self)
tests/test_from_thread.py:324
Method
test_contextvar_propagation_async
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:992
Method
test_contextvar_propagation_sync
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:982
Method
test_copy
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:456
Method
test_copy_into
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:470
Method
test_coro_attr
(self)
tests/test_taskgroups.py:2332
Method
test_create_connected_socket_bound_to_port
Test that passing an explicit ``local_port`` to ``create_connected_udp_socket()`` without a ``local_host`` parameter still ho
tests/test_sockets.py:2439
Method
test_create_connected_socket_bound_to_port_unspecified_family
With no family and no local host, the wildcard must match the family the remote resolved to rather than always being IPv4.
tests/test_sockets.py:2454
Method
test_create_socket_bound_to_port
Test that passing an explicit ``local_port`` to ``create_udp_socket()`` without a ``local_host`` parameter still honors that port whe
tests/test_sockets.py:2371
Method
test_create_unbound_socket
Regression test for #360.
tests/test_sockets.py:2363
Method
test_current_default_thread_limiter
(self)
tests/test_synchronization.py:844
Method
test_custom_context
(self)
tests/test_taskgroups.py:2479
Method
test_custom_start_and_step
(self)
tests/test_itertools.py:753
Method
test_cwd
(self)
tests/test_fileio.py:289
Function
test_deadline_moved
()
tests/test_taskgroups.py:1210
Function
test_deadline_reached_on_start
()
tests/test_taskgroups.py:1204
Method
test_debug
(self)
tests/test_eventloop.py:109
Method
test_debug_via_env
(self, monkeypatch: MonkeyPatch)
tests/test_eventloop.py:116
Function
test_debugger_exit_in_taskgroup
(testdir: Pytester, anyio_backend_name: str)
tests/test_pytest_plugin.py:477
Method
test_default_context_ignore_unexpected_eof_flag_off
(self)
tests/streams/test_tls.py:481
Method
test_default_max_size_no_rollover
(self, use_writelines: bool)
tests/test_tempfile.py:85
Method
test_defaults
(self)
tests/test_itertools.py:389
Function
test_deprecated_cancellable_param
()
tests/test_to_thread.py:214
Function
test_deprecated_item_type_parameter
()
tests/streams/test_memory.py:488
Function
test_deprecated_wait_socket
(anyio_backend_name: str)
tests/test_sockets.py:3444
Function
test_deprecations
()
tests/test_lazyimport.py:185
Function
test_dir
()
tests/test_lazyimport.py:180
Function
test_disallowing_multiple_results
()
tests/test_futures.py:27
Method
test_does_not_overconsume_iterator
(self)
tests/test_itertools.py:601
Method
test_drive_property
(self)
tests/test_fileio.py:220
Function
test_dynamic_async_fixture_access_does_not_hang
Test for a situation when an async test or fixture dynamically request an async fixture via request.getfixturevalue() from causing a re-entra
tests/test_pytest_plugin.py:659
Function
test_eager_task_factory
( request: FixtureRequest, use_custom_eager_factory: bool )
tests/test_taskgroups.py:2193
Function
test_echo
(free_tcp_port: int)
docs/snippets/testing/free_tcp_port.py:5
Function
test_echo
()
docs/snippets/testing/free_tcp_port_factory.py:5
Method
test_edge_cases
(self)
tests/test_itertools.py:281
Method
test_edge_cases
(self)
tests/test_itertools.py:326
Method
test_edge_cases
(self)
tests/test_itertools.py:461
Method
test_edge_cases
(self)
tests/test_itertools.py:507
Method
test_edge_cases
(self)
tests/test_itertools.py:726
Method
test_edge_cases
(self)
tests/test_itertools.py:914
Method
test_empty
(self)
tests/test_itertools.py:198
Method
test_empty_async_iterable_no_initial
(self)
tests/test_functools.py:487
Method
test_empty_inner_iterables
(self)
tests/test_itertools.py:227
Method
test_empty_inputs
(self)
tests/test_itertools.py:132
Method
test_empty_inputs
(self)
tests/test_itertools.py:159
Method
test_empty_inputs
(self)
tests/test_itertools.py:430
Method
test_empty_inputs
(self)
tests/test_itertools.py:559
Method
test_empty_iter_no_initial
(self)
tests/test_functools.py:451
Method
test_empty_iterable_no_initial
(self)
tests/test_functools.py:481
Method
test_empty_results
(self)
tests/test_itertools.py:668
Function
test_empty_taskgroup_contains_yield_point
Test that a task group yields at exit at least once, even with no child tasks to wait on.
tests/test_taskgroups.py:1032
Method
test_enter_twice
(self)
tests/test_contextmanagers.py:106
Method
test_enter_twice
(self)
tests/test_contextmanagers.py:211
Function
test_entrypoint_main_module
Test that worker process creation succeeds when __main__.__file__ points to an entry point script (no .py extension). Regression test for #10
tests/test_to_process.py:166
Method
test_eof_after_send
Regression test for #701.
tests/test_sockets.py:1200
Function
test_escaping_cancelled_error_from_cancelled_task
Regression test for issue #88. No CancelledError should escape the outer scope.
tests/test_taskgroups.py:1426
Function
test_escaping_cancelled_exception
()
tests/test_taskgroups.py:700
Method
test_event
(self)
tests/test_synchronization.py:270
Method
test_event_cancel
(self)
tests/test_synchronization.py:282
Method
test_event_wait_before_set_before_cancel
(self)
tests/test_synchronization.py:300
Method
test_exact_boundary_no_rollover
(self)
tests/test_tempfile.py:148
Function
test_exception
Test that exceptions are delivered properly.
tests/test_to_interpreter.py:48
Function
test_exception
Test that exceptions are delivered properly.
tests/test_to_process.py:47
Method
test_exception
(self)
tests/test_taskgroups.py:2375
Method
test_exception
(self, handle_exc: bool)
tests/test_contextmanagers.py:68
Method
test_exception
(self, handle_exc: bool)
tests/test_contextmanagers.py:164
Function
test_exception_cancels_siblings
()
tests/test_taskgroups.py:1145
Function
test_exception_group_children
()
tests/test_taskgroups.py:679
Function
test_exception_group_filtering
Test that CancelledErrors are filtered out of exception groups containing other exceptions. See also test_reraise_cancelled_in_excgroup.
tests/test_taskgroups.py:1332
Function
test_exception_group_host
()
tests/test_taskgroups.py:689
Function
test_exception_groups_suppresses_exc_context
()
tests/test_taskgroups.py:2237
Method
test_exception_handling
(self)
tests/test_tempfile.py:53
Method
test_exception_handling
(self)
tests/test_tempfile.py:219
Method
test_exception_passed_to_portal_cm
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:1078
Method
test_exception_refcycles_base_error
Test for BaseExceptions. anyio doesn't treat these differently so this test is redundant but copied from CPython's asyncio.T
tests/test_taskgroups.py:2125
Method
test_exception_refcycles_direct
Test that TaskGroup doesn't keep a reference to the raised ExceptionGroup Note: This test never failed on anyio, but keeping this te
tests/test_taskgroups.py:2050
Method
test_exception_refcycles_errors
Test that TaskGroup deletes self._exceptions, and __aexit__ args
tests/test_taskgroups.py:2072
Method
test_exception_refcycles_parent_task
Test that TaskGroup's cancel_scope deletes self._host_task
tests/test_taskgroups.py:2089
Method
test_exception_refcycles_propagate_cancellation_error
Test that TaskGroup deletes cancelled_exc
tests/test_taskgroups.py:2108
Function
test_exception_when_future_cancelled
()
tests/test_futures.py:103
Function
test_exception_when_future_failed
()
tests/test_futures.py:96
← previous
next →
1,801–1,900 of 2,553, ranked by callers