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
Method
test_no_caching
(self, maxsize: int)
tests/test_functools.py:96
Function
test_no_called_started_twice
()
tests/test_taskgroups.py:239
Method
test_no_initial
(self)
tests/test_functools.py:437
Function
test_no_spin_on_done_task_in_cancel_scope
Regression test for #1111. When a task group is entered but never exited (e.g. it is abandoned because the task owning it finishes without un
tests/test_taskgroups.py:423
Method
test_non_coro
(self)
tests/test_taskgroups.py:2341
Function
test_non_main_task_name
( name_input: bytes | str | None, expected: str )
tests/test_debugging.py:64
Function
test_nonexistent_main_module
Test that worker process creation won't fail if the detected path to the `__main__` module doesn't exist. Regression test for #696.
tests/test_to_process.py:143
Function
test_not_closed_warning
()
tests/streams/test_memory.py:496
Method
test_not_iterable
(self)
tests/test_functools.py:431
Method
test_notification_handover_on_cancel
(self)
tests/test_synchronization.py:418
Method
test_notify_after_release
(self)
tests/test_synchronization.py:462
Method
test_notify_no_lock
(self)
tests/test_synchronization.py:450
Method
test_notify_with_shared_lock
(self)
tests/test_synchronization.py:443
Method
test_nowait_acquire_after_release_does_not_oversubscribe
(self)
tests/test_synchronization.py:1086
Method
test_open
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:754
Method
test_open_close
( self, testdatafile: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:44
Function
test_open_process_connect_to_file
(tmp_path: Path)
tests/test_subprocesses.py:151
Method
test_ordered_queue
(self)
tests/test_synchronization.py:885
Function
test_outcome_exception_does_not_discard_runner_task
(testdir: Pytester)
tests/test_pytest_plugin.py:559
Method
test_owner
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:769
Method
test_owner_after_release
(self)
tests/test_synchronization.py:247
Method
test_owner_follow_symlinks
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:783
Function
test_package_names
()
tests/test_lazyimport.py:173
Method
test_parent_property
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:238
Method
test_parents_property
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:229
Function
test_partial
Test that partial() can be used to pass keyword arguments.
tests/test_to_process.py:39
Method
test_parts_property
(self)
tests/test_fileio.py:214
Method
test_pass_connectable
(self)
tests/test_sockets.py:3302
Function
test_patched_asyncio_task
(monkeypatch: MonkeyPatch)
tests/test_taskgroups.py:2227
Function
test_plugin
(testdir: Pytester)
tests/test_pytest_plugin.py:26
Function
test_plugin_loads_with_filterwarnings_error
Regression test for Issue #1271: importing the plugin must not touch the deprecated ``_pytest.python.CallSpec2`` alias, which crashes pytest
tests/test_pytest_plugin.py:891
Function
test_print
Test that print() won't interfere with parent-worker communication.
tests/test_to_process.py:53
Function
test_process_aexit_cancellation_closes_standard_streams
Regression test for #669. Ensures that open_process.__aexit__() closes standard streams when cancelled. Also ensures that process.std{in
tests/test_subprocesses.py:261
Function
test_process_aexit_cancellation_doesnt_orphan_process
Regression test for #669. Ensures that open_process.__aexit__() doesn't leave behind an orphan process when cancelled.
tests/test_subprocesses.py:243
Function
test_process_cwd
Test that `cwd` is successfully passed to the subprocess implementation
tests/test_subprocesses.py:117
Function
test_process_env
Test that `env` is successfully passed to the subprocess implementation
tests/test_subprocesses.py:124
Function
test_process_new_session_sid
Test that start_new_session is successfully passed to the subprocess implementation.
tests/test_subprocesses.py:136
Function
test_process_receive_invalid_max_bytes
(max_bytes: int)
tests/test_subprocesses.py:106
Function
test_programmatic_anyio_mark
Test that the anyio marker added programmatically via pytest_collection_modifyitems causes the test to be run (regression test for issue #422).
tests/test_pytest_plugin.py:842
Function
test_propagate_native_cancellation_from_taskgroup
()
tests/test_taskgroups.py:360
Method
test_propagates_inner_exception
(self)
tests/test_itertools.py:241
Method
test_properties
Ensure that all public properties and methods are available on the async Path class.
tests/test_fileio.py:127
Method
test_ragged_eof_on_receive
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:354
Method
test_ragged_eofs
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext, server
tests/streams/test_tls.py:300
Method
test_raise_baseexception_from_task
Test that when a task raises a BaseException, it does not trigger additional exceptions when trying to close the portal.
tests/test_from_thread.py:1020
Function
test_raising_exception
()
tests/test_futures.py:58
Method
test_read
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:51
Method
test_read_after_close
(self, file_path: Path)
tests/streams/test_file.py:44
Method
test_read_bytes
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:807
Method
test_read_file
(self, file_path: Path)
tests/streams/test_file.py:39
Method
test_read_file_as_path
(self, file_path_or_str: Path | str)
tests/streams/test_file.py:35
Method
test_read_text
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:812
Method
test_read_text_newline
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:401
Method
test_readinto
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:58
Method
test_readinto
(self)
tests/test_tempfile.py:156
Method
test_readinto1
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:64
Method
test_readinto1
(self)
tests/test_tempfile.py:164
Method
test_readlink
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:797
Function
test_receive
()
tests/streams/test_text.py:20
Method
test_receive_after_close
(self, server_addr: tuple[str, int])
tests/test_sockets.py:729
Method
test_receive_after_close
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1843
Method
test_receive_after_close
(self)
tests/test_sockets.py:2346
Method
test_receive_after_close
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2622
Method
test_receive_after_close
(self)
tests/test_sockets.py:3002
Method
test_receive_after_close
( self, peer_socket_path_or_str: Path | str, peer_sock: socket.socket )
tests/test_sockets.py:3241
Method
test_receive_after_peer_closed
( self, family: AnyIPAddressFamily, request: FixtureRequest )
tests/test_sockets.py:741
Function
test_receive_after_send_closed
()
tests/streams/test_memory.py:282
Function
test_receive_closed_with_buffer
( method: str, args: tuple[object, ...] )
tests/streams/test_buffered.py:69
Function
test_receive_encoding_error
()
tests/streams/test_text.py:72
Function
test_receive_exactly
()
tests/streams/test_buffered.py:36
Function
test_receive_exactly_incomplete
()
tests/streams/test_buffered.py:49
Method
test_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:774
Method
test_receive_fds
( self, server_sock: socket.socket, socket_path: Path, tmp_path: Path )
tests/test_sockets.py:1547
Method
test_receive_fds_bad_args
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1576
Function
test_receive_invalid_max_bytes
(max_bytes: int)
tests/streams/test_buffered.py:149
Method
test_receive_invalid_max_bytes
( self, server_addr: tuple[str, int], max_bytes: int )
tests/test_sockets.py:368
Method
test_receive_invalid_max_bytes
( self, server_sock: socket.socket, socket_path: Path, max_bytes: int )
tests/test_sockets.py:1489
Method
test_receive_invalid_max_bytes
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext, max_by
tests/streams/test_tls.py:147
Method
test_receive_invalid_max_bytes
( self, stapled: StapledByteStream, max_bytes: int )
tests/streams/test_stapled.py:99
Method
test_receive_invalid_max_bytes
( self, file_path: Path, max_bytes: int )
tests/streams/test_file.py:65
Method
test_receive_large_buffer
( self, server_sock: socket.socket, socket_path: Path )
tests/test_sockets.py:1498
Method
test_receive_send
( self, stapled: StapledByteStream, send_stream: DummyByteSendStream )
tests/streams/test_stapled.py:71
Method
test_receive_send
( self, stapled: StapledObjectStream[str], send_stream: DummyObjectSendStream[str] )
tests/streams/test_stapled.py:187
Method
test_receive_send_after_eof
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:393
Function
test_receive_send_closed_receive_stream
()
tests/streams/test_memory.py:129
Function
test_receive_send_closed_send_stream
()
tests/streams/test_memory.py:118
Function
test_receive_signals
()
tests/test_signals.py:24
Function
test_receive_skips_empty_messages
()
tests/streams/test_buffered.py:20
Function
test_receive_then_send
()
tests/streams/test_memory.py:42
Function
test_receive_then_send_nowait
()
tests/streams/test_memory.py:58
Method
test_receive_timeout
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:578
Function
test_receive_until
()
tests/streams/test_buffered.py:81
Function
test_receive_until_incomplete
()
tests/streams/test_buffered.py:99
Function
test_receive_when_cancelled
Test that calling receive() in a cancelled scope prevents it from going through with the operation.
tests/streams/test_memory.py:290
Method
test_relative_to_sibling
( self, populated_tmpdir: Path, monkeypatch: pytest.MonkeyPatch, )
tests/test_fileio.py:825
Method
test_relative_to_subpath
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:817
Method
test_rename
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:840
Method
test_replace
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:851
Function
test_repr
()
tests/test_futures.py:133
Method
test_repr
(self)
tests/test_fileio.py:153
← previous
next →
2,101–2,200 of 2,553, ranked by callers