MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,163 in github.com/agronholm/anyio

Methodtest_readinto
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:51
Methodtest_readinto1
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:57
Methodtest_readlink
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:702
Functiontest_receive
()
tests/streams/test_text.py:19
Methodtest_receive_after_close
(self, server_addr: tuple[str, int])
tests/test_sockets.py:534
Methodtest_receive_after_close
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1473
Methodtest_receive_after_close
(self)
tests/test_sockets.py:1870
Methodtest_receive_after_close
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2049
Methodtest_receive_after_close
(self)
tests/test_sockets.py:2207
Methodtest_receive_after_close
( self, peer_socket_path_or_str: Path | str, peer_sock: socket.socket )
tests/test_sockets.py:2407
Methodtest_receive_after_peer_closed
( self, family: AnyIPAddressFamily, request: FixtureRequest )
tests/test_sockets.py:546
Functiontest_receive_after_send_closed
()
tests/streams/test_memory.py:245
Functiontest_receive_encoding_error
()
tests/streams/test_text.py:47
Functiontest_receive_exactly
()
tests/streams/test_buffered.py:20
Functiontest_receive_exactly_incomplete
()
tests/streams/test_buffered.py:33
Methodtest_receive_exception_cause_preserved
Test that when connection_lost is called with an exception, the resulting BrokenResourceError has the original exception as its __cau
tests/test_sockets.py:579
Methodtest_receive_fds
( self, server_sock: socket.socket, socket_path: Path, tmp_path: Path )
tests/test_sockets.py:1296
Methodtest_receive_fds_bad_args
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1325
Functiontest_receive_invalid_max_bytes
(max_bytes: int)
tests/streams/test_buffered.py:113
Methodtest_receive_invalid_max_bytes
( self, server_addr: tuple[str, int], max_bytes: int )
tests/test_sockets.py:286
Methodtest_receive_invalid_max_bytes
( self, server_sock: socket.socket, socket_path: Path, max_bytes: int )
tests/test_sockets.py:1238
Methodtest_receive_invalid_max_bytes
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext, max_by
tests/streams/test_tls.py:105
Methodtest_receive_invalid_max_bytes
( self, stapled: StapledByteStream, max_bytes: int )
tests/streams/test_stapled.py:99
Methodtest_receive_invalid_max_bytes
( self, file_path: Path, max_bytes: int )
tests/streams/test_file.py:49
Methodtest_receive_large_buffer
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1247
Methodtest_receive_send
( self, stapled: StapledByteStream, send_stream: DummyByteSendStream )
tests/streams/test_stapled.py:71
Methodtest_receive_send
( self, stapled: StapledObjectStream[str], send_stream: DummyObjectSendStream[str] )
tests/streams/test_stapled.py:162
Methodtest_receive_send_after_eof
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:363
Functiontest_receive_send_closed_receive_stream
()
tests/streams/test_memory.py:151
Functiontest_receive_send_closed_send_stream
()
tests/streams/test_memory.py:139
Functiontest_receive_signals
()
tests/test_signals.py:24
Functiontest_receive_then_send
()
tests/streams/test_memory.py:45
Functiontest_receive_then_send_nowait
()
tests/streams/test_memory.py:64
Methodtest_receive_timeout
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:477
Functiontest_receive_until
()
tests/streams/test_buffered.py:45
Functiontest_receive_until_incomplete
()
tests/streams/test_buffered.py:63
Functiontest_receive_when_cancelled
Test that calling receive() in a cancelled scope prevents it from going through with the operation.
tests/streams/test_memory.py:255
Methodtest_relative_to_sibling
( self, populated_tmpdir: Path, monkeypatch: pytest.MonkeyPatch, )
tests/test_fileio.py:730
Methodtest_relative_to_subpath
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:722
Methodtest_rename
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:745
Methodtest_replace
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:756
Methodtest_repr
(self)
tests/test_fileio.py:138
Functiontest_reraise_cancelled_in_excgroup
()
tests/test_taskgroups.py:1755
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:769
Methodtest_return_async_generator
(self)
tests/test_contextmanagers.py:182
Methodtest_return_bad_type
(self)
tests/test_contextmanagers.py:79
Methodtest_return_bad_type
(self)
tests/test_contextmanagers.py:173
Methodtest_return_coroutine
(self)
tests/test_contextmanagers.py:200
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:191
Methodtest_return_value
(self)
tests/test_taskgroups.py:2137
Methodtest_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:913
Methodtest_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1831
Methodtest_reuse_port
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2005
Methodtest_rglob
( self, populated_tmpdir: Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:522
Methodtest_rglob_case_sensitive
(self, populated_tmpdir: Path)
tests/test_fileio.py:543
Methodtest_rglob_recurse_symlinks
(self, populated_tmpdir: Path)
tests/test_fileio.py:575
Methodtest_rmdir
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:777
Methodtest_root_property
(self)
tests/test_fileio.py:208
Methodtest_rtruediv
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:177
Methodtest_rtruediv_preserve_subclass
Test for #1130: Ensure that __rtruediv__ preserves the subclass type when called on a Path subclass.
tests/test_fileio.py:183
Methodtest_run_anyio_async_func_from_thread
(self)
tests/test_from_thread.py:229
Methodtest_run_async_closed_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:243
Methodtest_run_async_from_thread_exception
(self)
tests/test_from_thread.py:217
Methodtest_run_async_from_unclaimed_thread
(self)
tests/test_from_thread.py:177
Methodtest_run_async_no_event_loop
(self)
tests/test_from_thread.py:236
Methodtest_run_asyncgen_from_thread
(self)
tests/test_from_thread.py:165
Methodtest_run_corofunc_from_thread
(self)
tests/test_from_thread.py:161
Functiontest_run_in_custom_limiter
()
tests/test_to_thread.py:61
Functiontest_run_in_thread_cancelled
()
tests/test_to_thread.py:31
Functiontest_run_in_thread_exception
()
tests/test_to_thread.py:51
Functiontest_run_known_but_uninstalled_backend
(monkeypatch: MonkeyPatch)
tests/test_eventloop.py:83
Functiontest_run_natively
(modulename: str)
tests/test_taskgroups.py:86
Functiontest_run_non_corofunc
( anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_eventloop.py:58
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:182
Functiontest_run_process_inherit_stdout
(capfd: pytest.CaptureFixture[str])
tests/test_subprocesses.py:221
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:305
Methodtest_run_sync_from_thread
(self)
tests/test_from_thread.py:173
Methodtest_run_sync_from_thread_exception
(self)
tests/test_from_thread.py:223
Methodtest_run_sync_from_thread_pooling
(self)
tests/test_from_thread.py:194
Methodtest_run_sync_from_unclaimed_thread
(self)
tests/test_from_thread.py:282
Methodtest_run_sync_from_unclaimed_thread_no_token
(self)
tests/test_from_thread.py:296
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_worker_cyclic_references
()
tests/test_to_thread.py:371
Functiontest_run_task
Test that anyio.run() on asyncio will work with a callable returning a Future.
tests/test_eventloop.py:48
Functiontest_run_unknown_backend
()
tests/test_eventloop.py:75
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:783
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:1344
Methodtest_seek
(self, file_path: Path)
tests/streams/test_file.py:58
Functiontest_send
()
tests/streams/test_text.py:33
Methodtest_send_after_close
(self, server_addr: tuple[str, int])
tests/test_sockets.py:540
Methodtest_send_after_close
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1481
Methodtest_send_after_close
(self)
tests/test_sockets.py:1878
← previousnext →1,801–1,900 of 2,163, ranked by callers