MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

Functiontest_connect_tcp_getaddrinfo_context
See https://github.com/agronholm/anyio/issues/815
tests/test_sockets.py:3410
Methodtest_connect_tcp_with_local_port
( self, server_sock: socket.socket, server_addr: tuple[str, int], family: AnyI
tests/test_sockets.py:517
Methodtest_connect_tcp_with_tls
( self, server_context: SSLContext, client_context: SSLContext, server_sock: s
tests/test_sockets.py:823
Methodtest_connect_tcp_with_tls_cert_check_fail
( self, server_context: SSLContext, server_sock: socket.socket, server_addr: t
tests/test_sockets.py:851
Methodtest_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
Methodtest_connecting_using_bytes
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1867
Methodtest_connecting_with_non_utf8
(self, socket_path: Path)
tests/test_sockets.py:1876
Methodtest_connection_refused
( self, target: str, exception_class: type[ExceptionGroup | ConnectionRefusedError],
tests/test_sockets.py:562
Methodtest_consumes_first_failing_element
(self)
tests/test_itertools.py:931
Methodtest_consumes_start_items_when_stop_is_not_greater
(self)
tests/test_itertools.py:606
Methodtest_context_manager
(self)
tests/test_lowlevel.py:141
Methodtest_context_manager
(self)
tests/test_tempfile.py:197
Methodtest_contextmanager
(self)
tests/test_contextmanagers.py:60
Methodtest_contextmanager
(self)
tests/test_contextmanagers.py:156
Methodtest_contextmanager
(self)
tests/test_synchronization.py:34
Methodtest_contextmanager
(self)
tests/test_synchronization.py:353
Methodtest_contextmanager
(self)
tests/test_synchronization.py:542
Functiontest_contextvar_propagation
()
tests/test_to_thread.py:219
Methodtest_contextvar_propagation
(self, anyio_backend_name: str)
tests/test_from_thread.py:262
Methodtest_contextvar_propagation
(self)
tests/test_from_thread.py:324
Methodtest_contextvar_propagation_async
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:992
Methodtest_contextvar_propagation_sync
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:982
Methodtest_copy
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:456
Methodtest_copy_into
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:470
Methodtest_coro_attr
(self)
tests/test_taskgroups.py:2332
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_create_unbound_socket
Regression test for #360.
tests/test_sockets.py:2363
Methodtest_current_default_thread_limiter
(self)
tests/test_synchronization.py:844
Methodtest_custom_context
(self)
tests/test_taskgroups.py:2479
Methodtest_custom_start_and_step
(self)
tests/test_itertools.py:753
Methodtest_cwd
(self)
tests/test_fileio.py:289
Functiontest_deadline_moved
()
tests/test_taskgroups.py:1210
Functiontest_deadline_reached_on_start
()
tests/test_taskgroups.py:1204
Methodtest_debug
(self)
tests/test_eventloop.py:109
Methodtest_debug_via_env
(self, monkeypatch: MonkeyPatch)
tests/test_eventloop.py:116
Functiontest_debugger_exit_in_taskgroup
(testdir: Pytester, anyio_backend_name: str)
tests/test_pytest_plugin.py:477
Methodtest_default_context_ignore_unexpected_eof_flag_off
(self)
tests/streams/test_tls.py:481
Methodtest_default_max_size_no_rollover
(self, use_writelines: bool)
tests/test_tempfile.py:85
Methodtest_defaults
(self)
tests/test_itertools.py:389
Functiontest_deprecated_cancellable_param
()
tests/test_to_thread.py:214
Functiontest_deprecated_item_type_parameter
()
tests/streams/test_memory.py:488
Functiontest_deprecated_wait_socket
(anyio_backend_name: str)
tests/test_sockets.py:3444
Functiontest_deprecations
()
tests/test_lazyimport.py:185
Functiontest_dir
()
tests/test_lazyimport.py:180
Functiontest_disallowing_multiple_results
()
tests/test_futures.py:27
Methodtest_does_not_overconsume_iterator
(self)
tests/test_itertools.py:601
Methodtest_drive_property
(self)
tests/test_fileio.py:220
Functiontest_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
Functiontest_eager_task_factory
( request: FixtureRequest, use_custom_eager_factory: bool )
tests/test_taskgroups.py:2193
Functiontest_echo
(free_tcp_port: int)
docs/snippets/testing/free_tcp_port.py:5
Functiontest_echo
()
docs/snippets/testing/free_tcp_port_factory.py:5
Methodtest_edge_cases
(self)
tests/test_itertools.py:281
Methodtest_edge_cases
(self)
tests/test_itertools.py:326
Methodtest_edge_cases
(self)
tests/test_itertools.py:461
Methodtest_edge_cases
(self)
tests/test_itertools.py:507
Methodtest_edge_cases
(self)
tests/test_itertools.py:726
Methodtest_edge_cases
(self)
tests/test_itertools.py:914
Methodtest_empty
(self)
tests/test_itertools.py:198
Methodtest_empty_async_iterable_no_initial
(self)
tests/test_functools.py:487
Methodtest_empty_inner_iterables
(self)
tests/test_itertools.py:227
Methodtest_empty_inputs
(self)
tests/test_itertools.py:132
Methodtest_empty_inputs
(self)
tests/test_itertools.py:159
Methodtest_empty_inputs
(self)
tests/test_itertools.py:430
Methodtest_empty_inputs
(self)
tests/test_itertools.py:559
Methodtest_empty_iter_no_initial
(self)
tests/test_functools.py:451
Methodtest_empty_iterable_no_initial
(self)
tests/test_functools.py:481
Methodtest_empty_results
(self)
tests/test_itertools.py:668
Functiontest_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
Methodtest_enter_twice
(self)
tests/test_contextmanagers.py:106
Methodtest_enter_twice
(self)
tests/test_contextmanagers.py:211
Functiontest_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
Methodtest_eof_after_send
Regression test for #701.
tests/test_sockets.py:1200
Functiontest_escaping_cancelled_error_from_cancelled_task
Regression test for issue #88. No CancelledError should escape the outer scope.
tests/test_taskgroups.py:1426
Functiontest_escaping_cancelled_exception
()
tests/test_taskgroups.py:700
Methodtest_event
(self)
tests/test_synchronization.py:270
Methodtest_event_cancel
(self)
tests/test_synchronization.py:282
Methodtest_event_wait_before_set_before_cancel
(self)
tests/test_synchronization.py:300
Methodtest_exact_boundary_no_rollover
(self)
tests/test_tempfile.py:148
Functiontest_exception
Test that exceptions are delivered properly.
tests/test_to_interpreter.py:48
Functiontest_exception
Test that exceptions are delivered properly.
tests/test_to_process.py:47
Methodtest_exception
(self)
tests/test_taskgroups.py:2375
Methodtest_exception
(self, handle_exc: bool)
tests/test_contextmanagers.py:68
Methodtest_exception
(self, handle_exc: bool)
tests/test_contextmanagers.py:164
Functiontest_exception_cancels_siblings
()
tests/test_taskgroups.py:1145
Functiontest_exception_group_children
()
tests/test_taskgroups.py:679
Functiontest_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
Functiontest_exception_group_host
()
tests/test_taskgroups.py:689
Functiontest_exception_groups_suppresses_exc_context
()
tests/test_taskgroups.py:2237
Methodtest_exception_handling
(self)
tests/test_tempfile.py:53
Methodtest_exception_handling
(self)
tests/test_tempfile.py:219
Methodtest_exception_passed_to_portal_cm
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:1078
Methodtest_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
Methodtest_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
Methodtest_exception_refcycles_errors
Test that TaskGroup deletes self._exceptions, and __aexit__ args
tests/test_taskgroups.py:2072
Methodtest_exception_refcycles_parent_task
Test that TaskGroup's cancel_scope deletes self._host_task
tests/test_taskgroups.py:2089
Methodtest_exception_refcycles_propagate_cancellation_error
Test that TaskGroup deletes cancelled_exc
tests/test_taskgroups.py:2108
Functiontest_exception_when_future_cancelled
()
tests/test_futures.py:103
Functiontest_exception_when_future_failed
()
tests/test_futures.py:96
← previousnext →1,801–1,900 of 2,553, ranked by callers