Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agronholm/anyio
/ functions
Functions
2,163 in github.com/agronholm/anyio
⨍
Functions
2,163
◇
Types & classes
270
↳
Endpoints
11
Method
test_connect_tcp_with_tls
( self, server_context: SSLContext, client_context: SSLContext, server_sock: s
tests/test_sockets.py:628
Method
test_connect_tcp_with_tls_cert_check_fail
( self, server_context: SSLContext, server_sock: socket.socket, server_addr: t
tests/test_sockets.py:656
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:683
Method
test_connecting_using_bytes
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1497
Method
test_connecting_with_non_utf8
(self, socket_path: Path)
tests/test_sockets.py:1506
Method
test_connection_refused
( self, target: str, exception_class: type[ExceptionGroup] | type[ConnectionRefusedErr
tests/test_sockets.py:461
Method
test_consumes_first_failing_element
(self)
tests/test_itertools.py:920
Method
test_context_manager
(self)
tests/test_lowlevel.py:141
Method
test_context_manager
(self)
tests/test_tempfile.py:113
Method
test_contextmanager
(self)
tests/test_contextmanagers.py:60
Method
test_contextmanager
(self)
tests/test_contextmanagers.py:154
Method
test_contextmanager
(self)
tests/test_synchronization.py:33
Method
test_contextmanager
(self)
tests/test_synchronization.py:352
Method
test_contextmanager
(self)
tests/test_synchronization.py:513
Function
test_contextvar_propagation
()
tests/test_to_thread.py:153
Method
test_contextvar_propagation
(self, anyio_backend_name: str)
tests/test_from_thread.py:255
Method
test_contextvar_propagation
(self)
tests/test_from_thread.py:317
Method
test_contextvar_propagation_async
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:718
Method
test_contextvar_propagation_sync
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:708
Method
test_copy
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:397
Method
test_copy_into
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:411
Method
test_coro_attr
(self)
tests/test_taskgroups.py:2120
Method
test_create_unbound_socket
Regression test for #360.
tests/test_sockets.py:1887
Method
test_current_default_thread_limiter
(self)
tests/test_synchronization.py:804
Method
test_custom_context
(self)
tests/test_taskgroups.py:2267
Method
test_custom_start_and_step
(self)
tests/test_itertools.py:747
Method
test_cwd
(self)
tests/test_fileio.py:274
Function
test_deadline_moved
()
tests/test_taskgroups.py:1087
Function
test_deadline_reached_on_start
()
tests/test_taskgroups.py:1081
Method
test_debug
(self)
tests/test_eventloop.py:93
Method
test_debug_via_env
(self, monkeypatch: MonkeyPatch)
tests/test_eventloop.py:100
Function
test_debugger_exit_in_taskgroup
(testdir: Pytester, anyio_backend_name: str)
tests/test_pytest_plugin.py:431
Method
test_default_context_ignore_unexpected_eof_flag_off
(self)
tests/streams/test_tls.py:451
Method
test_defaults
(self)
tests/test_itertools.py:389
Function
test_deprecated_cancellable_param
()
tests/test_to_thread.py:148
Function
test_deprecated_item_type_parameter
()
tests/streams/test_memory.py:464
Function
test_deprecated_wait_socket
(anyio_backend_name: str)
tests/test_sockets.py:2608
Method
test_does_not_overconsume_iterator
(self)
tests/test_itertools.py:601
Method
test_drive_property
(self)
tests/test_fileio.py:205
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:614
Function
test_eager_task_factory
( request: FixtureRequest, use_custom_eager_factory: bool )
tests/test_taskgroups.py:1981
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:720
Method
test_edge_cases
(self)
tests/test_itertools.py:903
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:662
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:909
Method
test_enter_twice
(self)
tests/test_contextmanagers.py:106
Method
test_enter_twice
(self)
tests/test_contextmanagers.py:209
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:974
Function
test_escaping_cancelled_error_from_cancelled_task
Regression test for issue #88. No CancelledError should escape the outer scope.
tests/test_taskgroups.py:1303
Function
test_escaping_cancelled_exception
()
tests/test_taskgroups.py:642
Method
test_event
(self)
tests/test_synchronization.py:269
Method
test_event_cancel
(self)
tests/test_synchronization.py:281
Method
test_event_wait_before_set_before_cancel
(self)
tests/test_synchronization.py:299
Method
test_exact_boundary_no_rollover
(self)
tests/test_tempfile.py:103
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:2163
Method
test_exception
(self, handle_exc: bool)
tests/test_contextmanagers.py:68
Method
test_exception
(self, handle_exc: bool)
tests/test_contextmanagers.py:162
Function
test_exception_cancels_siblings
()
tests/test_taskgroups.py:1022
Function
test_exception_group_children
()
tests/test_taskgroups.py:621
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:1209
Function
test_exception_group_host
()
tests/test_taskgroups.py:631
Function
test_exception_groups_suppresses_exc_context
()
tests/test_taskgroups.py:2025
Method
test_exception_handling
(self)
tests/test_tempfile.py:49
Method
test_exception_handling
(self)
tests/test_tempfile.py:135
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:1913
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:1838
Method
test_exception_refcycles_errors
Test that TaskGroup deletes self._exceptions, and __aexit__ args
tests/test_taskgroups.py:1860
Method
test_exception_refcycles_parent_task
Test that TaskGroup's cancel_scope deletes self._host_task
tests/test_taskgroups.py:1877
Method
test_exception_refcycles_propagate_cancellation_error
Test that TaskGroup deletes cancelled_exc
tests/test_taskgroups.py:1896
Function
test_exceptions_after_subprocess_closes_standard_streams
()
tests/test_subprocesses.py:286
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:279
Method
test_exit_before_enter
(self)
tests/test_contextmanagers.py:115
Method
test_exit_before_enter
(self)
tests/test_contextmanagers.py:218
Method
test_expanduser
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:283
Method
test_extra_attributes
( self, server_sock: socket.socket, server_addr: tuple[str, int], family: AnyI
tests/test_sockets.py:253
Method
test_extra_attributes
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:796
Method
test_extra_attributes
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1199
Method
test_extra_attributes
(self, socket_path: Path)
tests/test_sockets.py:1579
Method
test_extra_attributes
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1771
Method
test_extra_attributes
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1942
Method
test_extra_attributes
(self, socket_path: Path)
tests/test_sockets.py:2123
Method
test_extra_attributes
( self, socket_path: Path, peer_socket_path: Path, peer_sock: socket.socket,
tests/test_sockets.py:2301
Method
test_extra_attributes
( self, request: pytest.FixtureRequest, server_context: ssl.SSLContext, client
tests/streams/test_tls.py:146
← previous
next →
1,501–1,600 of 2,163, ranked by callers