MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,163 in github.com/agronholm/anyio

Methodtest_iterable_variants
(self)
tests/test_itertools.py:105
Functiontest_iterate
()
tests/streams/test_memory.py:121
Methodtest_iterate
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:344
Methodtest_iterate
(self, server_sock: socket.socket, socket_path: Path)
tests/test_sockets.py:1403
Methodtest_iterate
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1806
Methodtest_iterate
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:1979
Methodtest_iterate
(self, peer_socket_path: Path, socket_path: Path)
tests/test_sockets.py:2163
Methodtest_iterate
( self, socket_path: Path, peer_socket_path: Path, )
tests/test_sockets.py:2349
Methodtest_iterdir
( self, populated_tmpdir: Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:591
Methodtest_joinpath
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:603
Functiontest_keyboard_interrupt_does_not_resume_test
(testdir: Pytester)
tests/test_pytest_plugin.py:480
Functiontest_keyboardinterrupt_during_test
( testdir: Pytester, anyio_backend_name: str )
tests/test_pytest_plugin.py:454
Methodtest_lchmod
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:646
Functiontest_level_cancellation
()
tests/test_taskgroups.py:456
Methodtest_limit
(self)
tests/test_synchronization.py:745
Methodtest_listening_bytes_path
(self, socket_path: Path)
tests/test_sockets.py:1664
Methodtest_listening_invalid_ascii
(self, socket_path: Path)
tests/test_sockets.py:1671
Methodtest_local_path_bytes
(self, socket_path: Path)
tests/test_sockets.py:2220
Methodtest_local_path_invalid_ascii
(self, socket_path: Path)
tests/test_sockets.py:2229
Methodtest_lock_granularity
Test that calls to the cached function with different arguments can occur concurrently and do not wait for a shared lock.
tests/test_functools.py:252
Methodtest_loop_factory
(self)
tests/test_eventloop.py:108
Methodtest_lru_eviction
(self)
tests/test_functools.py:168
Methodtest_lstat
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:656
Functiontest_main_task_name
( anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_debugging.py:28
Methodtest_manual_acquire
(self)
tests/test_synchronization.py:50
Methodtest_manual_acquire
(self)
tests/test_synchronization.py:364
Methodtest_manual_acquire
(self)
tests/test_synchronization.py:525
Methodtest_match
(self)
tests/test_fileio.py:616
Methodtest_max_value
(self, max_value: int | None)
tests/test_synchronization.py:594
Methodtest_max_value_exceeded
(self)
tests/test_synchronization.py:598
Functiontest_memory_object_item_receiver_repr
Test the repr of `MemoryObjectItemReceiver`. Since when `item` is not set, the default dataclass repr raises an AttributeError.
tests/streams/test_memory.py:510
Methodtest_mkdir
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:672
Functiontest_mkdtemp
(prefix: AnyStr)
tests/test_tempfile.py:184
Functiontest_mkstemp
( suffix: AnyStr, prefix: AnyStr, text: bool, content: AnyStr, )
tests/test_tempfile.py:153
Functiontest_module_scoped_task_group_fixture
(testdir: Pytester)
tests/test_pytest_plugin.py:260
Methodtest_move
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:426
Methodtest_move_into
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:441
Functiontest_move_on_after
(delay: float)
tests/test_taskgroups.py:718
Functiontest_move_on_after_no_timeout
()
tests/test_taskgroups.py:729
Functiontest_multi_listener
(tmp_path_factory: TempPathFactory)
tests/test_sockets.py:1689
Methodtest_multiple_threads
( self, provider: BlockingPortalProvider, anyio_backend_name: str )
tests/test_to_thread.py:338
Methodtest_n_one_creates_peekable_iterator
(self)
tests/test_itertools.py:963
Methodtest_n_zero
(self)
tests/test_itertools.py:960
Methodtest_name_property
(self)
tests/test_fileio.py:229
Methodtest_named_temporary_file
(self)
tests/test_tempfile.py:37
Functiontest_negative_max_buffer
()
tests/streams/test_memory.py:39
Methodtest_negative_r
(self)
tests/test_itertools.py:290
Methodtest_negative_r
(self)
tests/test_itertools.py:343
Methodtest_negative_r
(self)
tests/test_itertools.py:727
Methodtest_negative_repeat
(self)
tests/test_itertools.py:785
Functiontest_nested_exception_group_filtering
Test that CancelledErrors are filtered out of nested exception groups containing other exceptions.
tests/test_taskgroups.py:1249
Functiontest_nested_fail_after
()
tests/test_taskgroups.py:1101
Functiontest_nested_move_on_after
()
tests/test_taskgroups.py:740
Functiontest_nested_shield
()
tests/test_taskgroups.py:1121
Functiontest_nested_task_group_filtering
Test that CancelledErrors are filtered out of nested exception groups from task groups.
tests/test_taskgroups.py:1183
Methodtest_no_caching
(self, maxsize: int)
tests/test_functools.py:96
Functiontest_no_called_started_twice
()
tests/test_taskgroups.py:183
Methodtest_no_initial
(self)
tests/test_functools.py:437
Functiontest_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:365
Methodtest_non_coro
(self)
tests/test_taskgroups.py:2129
Functiontest_non_main_task_name
( name_input: bytes | str | None, expected: str )
tests/test_debugging.py:62
Functiontest_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
Functiontest_not_closed_warning
()
tests/streams/test_memory.py:472
Methodtest_not_iterable
(self)
tests/test_functools.py:431
Methodtest_notification_handover_on_cancel
(self)
tests/test_synchronization.py:418
Methodtest_nowait_acquire_after_release_does_not_oversubscribe
(self)
tests/test_synchronization.py:997
Methodtest_open
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:677
Methodtest_open_close
( self, testdatafile: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:37
Functiontest_open_process_connect_to_file
(tmp_path: Path)
tests/test_subprocesses.py:149
Methodtest_ordered_queue
(self)
tests/test_synchronization.py:846
Functiontest_outcome_exception_does_not_discard_runner_task
(testdir: Pytester)
tests/test_pytest_plugin.py:513
Methodtest_owner
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:692
Methodtest_owner_after_release
(self)
tests/test_synchronization.py:246
Methodtest_parent_property
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:223
Methodtest_parents_property
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:214
Functiontest_partial
Test that partial() can be used to pass keyword arguments.
tests/test_to_process.py:39
Methodtest_parts_property
(self)
tests/test_fileio.py:199
Methodtest_pass_connectable
(self)
tests/test_sockets.py:2468
Functiontest_patched_asyncio_task
(monkeypatch: MonkeyPatch)
tests/test_taskgroups.py:2015
Functiontest_plugin
(testdir: Pytester)
tests/test_pytest_plugin.py:23
Functiontest_print
Test that print() won't interfere with parent-worker communication.
tests/test_to_process.py:53
Functiontest_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:255
Functiontest_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:237
Functiontest_process_cwd
Test that `cwd` is successfully passed to the subprocess implementation
tests/test_subprocesses.py:115
Functiontest_process_env
Test that `env` is successfully passed to the subprocess implementation
tests/test_subprocesses.py:122
Functiontest_process_new_session_sid
Test that start_new_session is successfully passed to the subprocess implementation.
tests/test_subprocesses.py:134
Functiontest_process_receive_invalid_max_bytes
(max_bytes: int)
tests/test_subprocesses.py:104
Functiontest_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:781
Functiontest_propagate_native_cancellation_from_taskgroup
()
tests/test_taskgroups.py:304
Methodtest_propagates_inner_exception
(self)
tests/test_itertools.py:241
Methodtest_properties
Ensure that all public properties and methods are available on the async Path class.
tests/test_fileio.py:112
Methodtest_ragged_eof_on_receive
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext )
tests/streams/test_tls.py:324
Methodtest_ragged_eofs
( self, server_context: ssl.SSLContext, client_context: ssl.SSLContext, server
tests/streams/test_tls.py:270
Methodtest_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:746
Methodtest_read
(self, testdatafile: pathlib.Path, testdata: bytes)
tests/test_fileio.py:44
Methodtest_read_after_close
(self, file_path: Path)
tests/streams/test_file.py:41
Methodtest_read_bytes
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:712
Methodtest_read_file
(self, file_path: Path)
tests/streams/test_file.py:36
Methodtest_read_file_as_path
(self, file_path_or_str: Path | str)
tests/streams/test_file.py:32
Methodtest_read_text
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:717
← previousnext →1,701–1,800 of 2,163, ranked by callers