MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

Functiontest_reraise_cancelled_in_excgroup
()
tests/test_taskgroups.py:1916
Methodtest_reset_during_send
( self, family: AnyIPAddressFamily, request: FixtureRequest )
tests/test_sockets.py:657
Methodtest_reset_token_used_on_wrong_runvar
(self)
tests/test_lowlevel.py:112
Methodtest_reset_token_used_twice
(self)
tests/test_lowlevel.py:121
Methodtest_resolve
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:864
Functiontest_result
()
tests/test_futures.py:19
Methodtest_retry_after_failed_enter
( self, provider: BlockingPortalProvider, anyio_backend_name: str )
tests/test_to_thread.py:464
Methodtest_return_async_generator
(self)
tests/test_contextmanagers.py:184
Methodtest_return_bad_type
(self)
tests/test_contextmanagers.py:79
Methodtest_return_bad_type
(self)
tests/test_contextmanagers.py:175
Methodtest_return_coroutine
(self)
tests/test_contextmanagers.py:202
Methodtest_return_generator
(self)
tests/test_contextmanagers.py:88
Methodtest_return_self
(self)
tests/test_contextmanagers.py:97
Methodtest_return_self
(self)
tests/test_contextmanagers.py:193
Methodtest_return_value
(self)
tests/test_taskgroups.py:2349
Functiontest_return_value_when_future_not_finished
()
tests/test_futures.py:84
Methodtest_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1110
Methodtest_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2266
Methodtest_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2535
Methodtest_rglob
( self, populated_tmpdir: Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:581
Methodtest_rglob_case_sensitive
(self, populated_tmpdir: Path)
tests/test_fileio.py:602
Methodtest_rglob_recurse_symlinks
(self, populated_tmpdir: Path)
tests/test_fileio.py:634
Methodtest_rmdir
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:872
Methodtest_rollover_preserves_position
Rollover preserves the position of a partially read file.
tests/test_tempfile.py:133
Methodtest_root_property
(self)
tests/test_fileio.py:223
Methodtest_rtruediv
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:192
Methodtest_rtruediv_preserve_subclass
Test for #1130: Ensure that __rtruediv__ preserves the subclass type when called on a Path subclass.
tests/test_fileio.py:198
Methodtest_run_anyio_async_func_from_thread
(self)
tests/test_from_thread.py:236
Methodtest_run_async_closed_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:250
Methodtest_run_async_from_thread_exception
(self)
tests/test_from_thread.py:224
Methodtest_run_async_from_unclaimed_thread
(self)
tests/test_from_thread.py:184
Methodtest_run_async_no_event_loop
(self)
tests/test_from_thread.py:243
Methodtest_run_asyncgen_from_thread
(self)
tests/test_from_thread.py:172
Methodtest_run_corofunc_from_thread
(self)
tests/test_from_thread.py:168
Functiontest_run_in_custom_limiter
()
tests/test_to_thread.py:63
Functiontest_run_in_thread_cancelled
()
tests/test_to_thread.py:33
Functiontest_run_in_thread_exception
()
tests/test_to_thread.py:53
Functiontest_run_known_but_uninstalled_backend
(monkeypatch: MonkeyPatch)
tests/test_eventloop.py:99
Functiontest_run_natively
(modulename: str)
tests/test_taskgroups.py:91
Functiontest_run_non_corofunc
( anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_eventloop.py:74
Functiontest_run_process
( shell: bool, command: str | list[str], event_loop_implementation_name: str | None )
tests/test_subprocesses.py:44
Functiontest_run_process_checked
()
tests/test_subprocesses.py:55
Functiontest_run_process_connect_to_file
(tmp_path: Path)
tests/test_subprocesses.py:186
Functiontest_run_process_inherit_stdout
(capfd: pytest.CaptureFixture[str])
tests/test_subprocesses.py:227
Functiontest_run_sync
Test that the function runs in a different interpreter, and the same interpreter in both calls.
tests/test_to_interpreter.py:27
Methodtest_run_sync_closed_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:312
Methodtest_run_sync_from_thread
(self)
tests/test_from_thread.py:180
Methodtest_run_sync_from_thread_exception
(self)
tests/test_from_thread.py:230
Methodtest_run_sync_from_thread_pooling
(self)
tests/test_from_thread.py:201
Methodtest_run_sync_from_unclaimed_thread
(self)
tests/test_from_thread.py:289
Methodtest_run_sync_from_unclaimed_thread_no_token
(self)
tests/test_from_thread.py:303
Functiontest_run_sync_in_process_pool
Test that the function runs in a different process, and the same process in both calls.
tests/test_to_process.py:23
Functiontest_run_sync_soon_closed_event_loop
(close_during_schedule: bool)
tests/test_from_thread.py:359
Functiontest_run_sync_worker_cyclic_references
()
tests/test_to_thread.py:486
Functiontest_run_task
Test that anyio.run() on asyncio will work with a callable returning a Future.
tests/test_eventloop.py:64
Functiontest_run_unknown_backend
()
tests/test_eventloop.py:91
Methodtest_runvar_does_not_share_storage_by_name
(self)
tests/test_lowlevel.py:128
Methodtest_samefile
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:878
Functiontest_schedule_old_style_coroutine_func
Test that we give a sensible error when a user tries to spawn a task from a generator-style coroutine function.
tests/test_taskgroups.py:1467
Methodtest_seek
(self, file_path: Path)
tests/streams/test_file.py:74
Functiontest_send
()
tests/streams/test_text.py:58
Methodtest_send_after_close
(self, server_addr: tuple[str, int])
tests/test_sockets.py:735
Methodtest_send_after_close
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1851
Methodtest_send_after_close
(self)
tests/test_sockets.py:2354
Methodtest_send_after_close
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2630
Methodtest_send_after_close
(self, socket_path: Path)
tests/test_sockets.py:3008
Methodtest_send_after_close
( self, peer_socket_path_or_str: Path | str, peer_sock: socket.socket )
tests/test_sockets.py:3249
Methodtest_send_after_eof
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1174
Methodtest_send_after_eof
(self, socket_path: Path)
tests/test_sockets.py:2000
Methodtest_send_after_peer_closed
( self, family: AnyIPAddressFamily, request: FixtureRequest )
tests/test_sockets.py:757
Functiontest_send_bom_emitted_only_once
Encodings that emit a byte order mark must not repeat it on every send, otherwise the peer receives spurious U+FEFF characters (or duplicate
tests/streams/test_text.py:93
Functiontest_send_encoding_error
()
tests/streams/test_text.py:82
Methodtest_send_eof
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:400
Methodtest_send_eof
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1662
Methodtest_send_eof
(self, stapled: StapledByteStream)
tests/streams/test_stapled.py:83
Methodtest_send_eof
(self, stapled: StapledObjectStream[str])
tests/streams/test_stapled.py:227
Methodtest_send_eof_not_implemented
( self, server_context: ssl.SSLContext, ca: CA, force_tlsv12: bool )
tests/streams/test_tls.py:437
Methodtest_send_exception_cause_preserved
Test that when connection_lost is called with an exception, the resulting BrokenResourceError from send() has the original exception
tests/test_sockets.py:798
Methodtest_send_fds
( self, server_sock: socket.socket, socket_path: Path, tmp_path: Path )
tests/test_sockets.py:1592
Methodtest_send_fds_bad_args
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1703
Methodtest_send_fds_large_message
(self, tmp_path: Path)
tests/test_sockets.py:1628
Functiontest_send_is_unblocked_after_receive_nowait
()
tests/streams/test_memory.py:82
Methodtest_send_large_buffer
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:377
Methodtest_send_large_buffer
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1519
Methodtest_send_nowait_does_not_mask_attribute_error
( self, receive_stream: DummyObjectReceiveStream[str] )
tests/streams/test_stapled.py:218
Methodtest_send_nowait_implemented
( self, stapled_with_send_nowait: StapledObjectStream[str], send_stream_with_send_nowa
tests/streams/test_stapled.py:200
Methodtest_send_nowait_not_implemented
( self, stapled: StapledObjectStream[str], send_stream: DummyObjectSendStream[str] )
tests/streams/test_stapled.py:208
Functiontest_send_nowait_then_receive_nowait
()
tests/streams/test_memory.py:94
Methodtest_send_receive
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:354
Methodtest_send_receive
( self, server_sock: socket.socket, socket_path_or_str: Path | str )
tests/test_sockets.py:1450
Methodtest_send_receive
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2222
Methodtest_send_receive
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2488
Methodtest_send_receive
(self, socket_path_or_str: Path | str)
tests/test_sockets.py:2901
Methodtest_send_receive
( self, socket_path_or_str: Path | str, peer_socket_path_or_str: Path | str, )
tests/test_sockets.py:3122
Methodtest_send_receive
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:36
Methodtest_send_receive_seqsocket
Verifies the behavior of a SOCK_SEQPACKET socket, which is a connection-oriented socket that preserves message boundaries.
tests/test_sockets.py:1467
Functiontest_send_then_receive_nowait
()
tests/streams/test_memory.py:74
Functiontest_send_to_natively_cancelled_receiver
Test that if a task waiting on receive.receive() is cancelled and then another task sends an item, said item is not delivered to the task wit
tests/streams/test_memory.py:513
Methodtest_send_waits_for_the_os_to_accept_the_datagram
( self, send: Callable[[bytes], Coroutine[Any, Any, None]], peer: socket.socket )
tests/test_sockets.py:2782
Functiontest_send_when_cancelled
Test that calling send() in a cancelled scope prevents it from going through with the operation.
tests/streams/test_memory.py:311
← previousnext →2,201–2,300 of 2,553, ranked by callers