MCPcopy Create free account

hub / github.com/agronholm/anyio / functions

Functions2,553 in github.com/agronholm/anyio

Methodtest_increase_tokens_does_not_oversubscribe
Raising ``total_tokens`` must not grant more waiters than the spare capacity, even when the limiter is over-subscribed because
tests/test_synchronization.py:934
Methodtest_increase_tokens_lets_others_acquire
(self)
tests/test_synchronization.py:904
Methodtest_indexable_arguments
(self)
tests/test_itertools.py:584
Methodtest_infinite
(self)
tests/test_itertools.py:818
Methodtest_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:231
Methodtest_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:335
Methodtest_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:499
Methodtest_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:741
Methodtest_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:959
Functiontest_interrupted_by_close
(socket_type: str)
tests/test_sockets.py:3462
Methodtest_invalid_argument_count
(self)
tests/test_itertools.py:612
Methodtest_invalid_indices
(self)
tests/test_itertools.py:621
Functiontest_invalid_max_buffer
()
tests/streams/test_memory.py:30
Methodtest_invalid_n
(self)
tests/test_itertools.py:184
Methodtest_invalid_n
(self)
tests/test_itertools.py:982
Methodtest_invalid_r_type
(self)
tests/test_itertools.py:737
Methodtest_invalid_repeat_type
(self)
tests/test_itertools.py:800
Methodtest_invalid_times_type
(self)
tests/test_itertools.py:849
Methodtest_is_absolute
(self, arg: str, result: bool)
tests/test_fileio.py:317
Methodtest_is_block_device
(self)
tests/test_fileio.py:324
Methodtest_is_char_device
(self)
tests/test_fileio.py:338
Methodtest_is_dir
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:342
Methodtest_is_dir_follow_symlinks
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:389
Methodtest_is_fifo
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:351
Methodtest_is_file
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:357
Methodtest_is_file_follow_symlinks
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:377
Methodtest_is_junction
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:411
Methodtest_is_mount
(self)
tests/test_fileio.py:414
Methodtest_is_relative_to
(self, arg: str, result: bool)
tests/test_fileio.py:449
Methodtest_is_reserved
(self)
tests/test_fileio.py:423
Methodtest_is_socket
(self, tmp_path_factory: TempPathFactory)
tests/test_fileio.py:431
Methodtest_is_symlink
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:442
Methodtest_iterable
(self)
tests/test_itertools.py:407
Methodtest_iterable
(self)
tests/test_itertools.py:953
Methodtest_iterable_variants
(self)
tests/test_itertools.py:105
Functiontest_iterate
()
tests/streams/test_memory.py:103
Methodtest_iterate
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:426
Methodtest_iterate
(self, server_sock: socket.socket, socket_path: Path)
tests/test_sockets.py:1688
Methodtest_iterate
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2239
Methodtest_iterate
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2509
Methodtest_iterate
(self, peer_socket_path: Path, socket_path: Path)
tests/test_sockets.py:2923
Methodtest_iterate
( self, socket_path: Path, peer_socket_path: Path, )
tests/test_sockets.py:3146
Methodtest_iterdir
( self, populated_tmpdir: Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:650
Methodtest_joinpath
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:662
Functiontest_keyboard_interrupt_does_not_resume_test
(testdir: Pytester)
tests/test_pytest_plugin.py:526
Functiontest_keyboardinterrupt_during_test
( testdir: Pytester, anyio_backend_name: str )
tests/test_pytest_plugin.py:500
Methodtest_lchmod
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:705
Functiontest_level_cancellation
()
tests/test_taskgroups.py:514
Methodtest_limit
(self)
tests/test_synchronization.py:785
Methodtest_listening_bytes_path
(self, socket_path: Path)
tests/test_sockets.py:2034
Methodtest_listening_invalid_ascii
(self, socket_path: Path)
tests/test_sockets.py:2041
Methodtest_local_path_bytes
(self, socket_path: Path)
tests/test_sockets.py:3015
Methodtest_local_path_invalid_ascii
(self, socket_path: Path)
tests/test_sockets.py:3024
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:124
Methodtest_lru_eviction
(self)
tests/test_functools.py:168
Methodtest_lstat
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:715
Functiontest_main_task_name
( anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_debugging.py:30
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:554
Functiontest_map_empty_args
()
tests/test_concurrency_utils.py:128
Functiontest_map_propagates_exception
()
tests/test_concurrency_utils.py:135
Functiontest_map_results_ordering
()
tests/test_concurrency_utils.py:112
Methodtest_match
(self)
tests/test_fileio.py:675
Methodtest_max_value
(self, max_value: int | None)
tests/test_synchronization.py:645
Methodtest_max_value_exceeded
(self)
tests/test_synchronization.py:649
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:534
Methodtest_mkdir
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:749
Functiontest_mkdtemp
(prefix: AnyStr)
tests/test_tempfile.py:303
Functiontest_mkstemp
( suffix: AnyStr, prefix: AnyStr, text: bool, content: AnyStr, )
tests/test_tempfile.py:272
Functiontest_module_scoped_task_group_fixture
(testdir: Pytester)
tests/test_pytest_plugin.py:263
Methodtest_move
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:485
Methodtest_move_into
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:500
Functiontest_move_on_after
(delay: float)
tests/test_taskgroups.py:785
Functiontest_move_on_after_no_timeout
()
tests/test_taskgroups.py:796
Functiontest_move_on_at
(delay: float)
tests/test_taskgroups.py:860
Functiontest_move_on_at_no_timeout
()
tests/test_taskgroups.py:871
Functiontest_multi_listener
(tmp_path_factory: TempPathFactory)
tests/test_sockets.py:2088
Methodtest_multiple_threads
( self, provider: BlockingPortalProvider, anyio_backend_name: str )
tests/test_to_thread.py:439
Functiontest_multiple_waiters
()
tests/test_futures.py:138
Methodtest_n_one_creates_peekable_iterator
(self)
tests/test_itertools.py:974
Methodtest_n_zero
(self)
tests/test_itertools.py:971
Methodtest_name_property
(self)
tests/test_fileio.py:244
Methodtest_named_temporary_file
(self)
tests/test_tempfile.py:41
Functiontest_nan_deadline_rejected
A NaN deadline raises ValueError on all backends.
tests/test_taskgroups.py:2579
Functiontest_nan_deadline_setter_rejected
Assigning a NaN deadline raises ValueError on all backends.
tests/test_taskgroups.py:2585
Methodtest_native_cancel_after_scope_cancel_same_cycle
Test that a native cancellation which lands after the scope has already cancelled the host task, but before the task runs again, is n
tests/test_taskgroups.py:1718
Methodtest_native_cancel_after_scope_cancel_same_cycle_group
Same as above, but with the cancellation exception wrapped in an exception group.
tests/test_taskgroups.py:1741
Methodtest_native_cancel_after_scope_cancel_task_cancelled
Test that a task whose cancel scope's deadline and a native cancellation are both delivered in the same event loop iteration ends up
tests/test_taskgroups.py:1760
Functiontest_negative_max_buffer
()
tests/streams/test_memory.py:36
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:733
Methodtest_negative_repeat
(self)
tests/test_itertools.py:796
Functiontest_nested_exception_group_filtering
Test that CancelledErrors are filtered out of nested exception groups containing other exceptions.
tests/test_taskgroups.py:1372
Functiontest_nested_fail_after
()
tests/test_taskgroups.py:1224
Functiontest_nested_move_on_after
()
tests/test_taskgroups.py:807
Functiontest_nested_shield
()
tests/test_taskgroups.py:1244
Functiontest_nested_task_group_filtering
Test that CancelledErrors are filtered out of nested exception groups from task groups.
tests/test_taskgroups.py:1306
← previousnext →2,001–2,100 of 2,553, ranked by callers