MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,163 in github.com/agronholm/anyio

Methodtest_as_uri
(self)
tests/test_fileio.py:253
Methodtest_async_context_manager_error
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:586
Methodtest_async_context_manager_error_ignore
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:599
Methodtest_async_context_manager_exception_in_task_group
Regression test for #381.
tests/test_from_thread.py:609
Methodtest_async_context_manager_success
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:577
Functiontest_async_fixture_in_test_class
(testdir: Pytester)
tests/test_pytest_plugin.py:545
Functiontest_async_fixture_params
(testdir: Pytester)
tests/test_pytest_plugin.py:594
Functiontest_async_fixture_teardown_after_sync_test
(testdir: Pytester)
tests/test_pytest_plugin.py:317
Methodtest_async_iteration
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:69
Functiontest_asyncgen_fixture_in_test_class
(testdir: Pytester)
tests/test_pytest_plugin.py:569
Functiontest_asyncio
(testdir: Pytester, caplog: LogCaptureFixture)
tests/test_pytest_plugin.py:96
Functiontest_asyncio_call_graph
(native: bool)
tests/test_taskgroups.py:2083
Functiontest_asyncio_cancel_native_task
()
tests/test_to_thread.py:164
Methodtest_asyncio_deadlock
Regression test for #398.
tests/test_synchronization.py:172
Methodtest_asyncio_deadlock
Regression test for #398.
tests/test_synchronization.py:636
Methodtest_asyncio_deadlock
Regression test for #398.
tests/test_synchronization.py:831
Functiontest_asyncio_future_callback_partial
Regression test for #272. Ensures that futures with partial callbacks are handled correctly when the root task cannot be determined.
tests/test_to_thread.py:206
Functiontest_asyncio_no_recycle_stopping_worker
Regression test for #323.
tests/test_to_thread.py:255
Functiontest_asyncio_no_root_task
Regression test for #264. Ensures that to_thread.run_sync() does not raise an error when there is no root task, but instead tries to fin
tests/test_to_thread.py:179
Methodtest_asyncio_run_sync_called
Regression test for #357.
tests/test_from_thread.py:734
Functiontest_asyncio_run_sync_multiple
Regression test for #304.
tests/test_to_thread.py:241
Functiontest_asyncio_run_sync_no_asyncio_run
Test that the thread pool shutdown callback does not raise an exception.
tests/test_to_thread.py:227
Methodtest_asynciter
(self)
tests/test_itertools.py:419
Methodtest_asynciter
(self)
tests/test_itertools.py:598
Methodtest_asynciter
(self)
tests/test_itertools.py:955
Methodtest_asynciter_has_initial
(self)
tests/test_functools.py:469
Methodtest_asynciter_no_initial
(self)
tests/test_functools.py:457
Methodtest_asynciter_variants
(self)
tests/test_itertools.py:119
Functiontest_asynclib_detection
()
tests/test_to_thread.py:159
Functiontest_auto_mode
(testdir: Pytester)
tests/test_pytest_plugin.py:647
Functiontest_auto_mode_conflict_warning
(testdir: Pytester)
tests/test_pytest_plugin.py:672
Functiontest_autouse_async_fixture
(testdir: Pytester)
tests/test_pytest_plugin.py:197
Methodtest_bad_func_argument
(self)
tests/test_functools.py:66
Methodtest_bad_init_type
(self)
tests/test_synchronization.py:710
Methodtest_bad_init_value
(self, anyio_backend_name: str)
tests/test_synchronization.py:715
Methodtest_bad_release
(self)
tests/test_synchronization.py:772
Methodtest_bad_type
(self)
tests/test_sockets.py:2499
Methodtest_base_exception
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_taskgroups.py:2190
Methodtest_basic_cases
(self)
tests/test_itertools.py:152
Methodtest_basic_cases
(self)
tests/test_itertools.py:265
Methodtest_basic_cases
(self)
tests/test_itertools.py:307
Methodtest_basic_cases
(self)
tests/test_itertools.py:365
Methodtest_basic_cases
(self)
tests/test_itertools.py:450
Methodtest_basic_cases
(self)
tests/test_itertools.py:496
Methodtest_basic_cases
(self)
tests/test_itertools.py:542
Methodtest_basic_cases
(self)
tests/test_itertools.py:658
Methodtest_basic_cases
(self)
tests/test_itertools.py:682
Methodtest_basic_cases
(self)
tests/test_itertools.py:758
Methodtest_basic_cases
(self)
tests/test_itertools.py:849
Methodtest_basic_cases
(self)
tests/test_itertools.py:887
Methodtest_basic_cases
(self)
tests/test_itertools.py:991
Methodtest_basic_slices
(self)
tests/test_itertools.py:571
Functiontest_bidirectional_stream
()
tests/streams/test_text.py:67
Methodtest_bind_link_local
(self)
tests/test_sockets.py:1002
Methodtest_bind_twice
Test that the previous socket is removed before binding to the path.
tests/test_sockets.py:1658
Methodtest_borrow
(self)
tests/test_synchronization.py:735
Methodtest_borrow_twice
(self)
tests/test_synchronization.py:762
Functiontest_broken_worker_interpreter_deprecation
()
tests/test_deprecations.py:8
Functiontest_buffered_connectable
()
tests/streams/test_buffered.py:96
Functiontest_buffered_stream
()
tests/streams/test_buffered.py:77
Functiontest_buffered_stream_receive_invalid_max_bytes
(max_bytes: int)
tests/streams/test_buffered.py:124
Methodtest_bytes
(self)
tests/test_fileio.py:141
Methodtest_cache_clear
(self)
tests/test_functools.py:111
Methodtest_cache_parameters
(self)
tests/test_functools.py:70
Methodtest_cache_same_function_twice
(self)
tests/test_functools.py:236
Methodtest_cached_class_method
(self)
tests/test_functools.py:317
Methodtest_cached_instance_method
(self)
tests/test_functools.py:330
Methodtest_cached_static_method
(self)
tests/test_functools.py:304
Methodtest_caching
(self, typed: bool, expected_entries: int)
tests/test_functools.py:152
Methodtest_call_anext
(self)
tests/test_from_thread.py:361
Methodtest_call_corofunc
(self)
tests/test_from_thread.py:349
Methodtest_call_iterables
(self)
tests/test_itertools.py:195
Methodtest_call_mixed_iterables
(self)
tests/test_itertools.py:201
Methodtest_call_non_corofunc
(self)
tests/test_from_thread.py:354
Methodtest_call_portal_from_event_loop_thread
(self)
tests/test_from_thread.py:427
Methodtest_call_stopped_portal
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_from_thread.py:467
Methodtest_call_superclass_method
(self)
tests/test_contextmanagers.py:122
Methodtest_call_superclass_method
(self)
tests/test_contextmanagers.py:226
Functiontest_cancel
()
tests/test_taskgroups.py:475
Methodtest_cancel
Test that the task function gets to run until the first checkpoint when it's cancelled right after creation.
tests/test_taskgroups.py:2218
Methodtest_cancel_after_release
Test that a native asyncio cancellation will not cause a lock ownership to get lost between a release() and the resumption of acquire
tests/test_synchronization.py:188
Methodtest_cancel_after_release
Test that a native asyncio cancellation will not cause a semaphore ownership to get lost between a release() and the resumption of ac
tests/test_synchronization.py:652
Functiontest_cancel_before
Test that starting to_process.run_sync() in a cancelled scope does not cause a worker process to be reserved.
tests/test_to_process.py:85
Functiontest_cancel_before_entering_scope
Test that CancelScope.cancel() is honored even if called before entering the scope.
tests/test_taskgroups.py:609
Functiontest_cancel_before_entering_task_group
()
tests/test_taskgroups.py:1745
Functiontest_cancel_cascade
()
tests/test_taskgroups.py:1044
Functiontest_cancel_child_task_when_host_is_shielded
()
tests/test_taskgroups.py:1764
Functiontest_cancel_completed_task
()
tests/test_taskgroups.py:1390
Methodtest_cancel_counter_nested_scopes
(self)
tests/test_taskgroups.py:1640
Functiontest_cancel_during
Test that cancelling an operation on the worker process causes the process to be killed.
tests/test_to_process.py:99
Methodtest_cancel_during_acquire
(self, release_first: bool)
tests/test_synchronization.py:126
Methodtest_cancel_during_acquire
(self, release_first: bool)
tests/test_synchronization.py:568
Functiontest_cancel_during_receive
Test that cancelling a pending receive() operation does not cause an item in the stream to be lost.
tests/streams/test_memory.py:305
Functiontest_cancel_during_receive_buffered
Test that sending an item to a memory object stream when the receiver that is next in line has been cancelled will not result in the item bei
tests/streams/test_memory.py:331
Functiontest_cancel_exiting_task_group
Test that if a task group is waiting for subtasks to finish and it receives a cancellation, the subtasks are also cancelled and the waiting c
tests/test_taskgroups.py:582
Functiontest_cancel_from_shielded_scope
()
tests/test_taskgroups.py:781
Functiontest_cancel_generator_based_task
()
tests/test_taskgroups.py:1322
Functiontest_cancel_host_asyncgen
()
tests/test_taskgroups.py:930
Methodtest_cancel_message_replaced
(self)
tests/test_taskgroups.py:1623
Functiontest_cancel_native_future_tasks
()
tests/test_taskgroups.py:1367
← previousnext →1,301–1,400 of 2,163, ranked by callers