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_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
Method
test_increase_tokens_lets_others_acquire
(self)
tests/test_synchronization.py:904
Method
test_indexable_arguments
(self)
tests/test_itertools.py:584
Method
test_infinite
(self)
tests/test_itertools.py:818
Method
test_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:231
Method
test_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:335
Method
test_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:499
Method
test_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:741
Method
test_instantiate_outside_event_loop
( self, anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_synchronization.py:959
Function
test_interrupted_by_close
(socket_type: str)
tests/test_sockets.py:3462
Method
test_invalid_argument_count
(self)
tests/test_itertools.py:612
Method
test_invalid_indices
(self)
tests/test_itertools.py:621
Function
test_invalid_max_buffer
()
tests/streams/test_memory.py:30
Method
test_invalid_n
(self)
tests/test_itertools.py:184
Method
test_invalid_n
(self)
tests/test_itertools.py:982
Method
test_invalid_r_type
(self)
tests/test_itertools.py:737
Method
test_invalid_repeat_type
(self)
tests/test_itertools.py:800
Method
test_invalid_times_type
(self)
tests/test_itertools.py:849
Method
test_is_absolute
(self, arg: str, result: bool)
tests/test_fileio.py:317
Method
test_is_block_device
(self)
tests/test_fileio.py:324
Method
test_is_char_device
(self)
tests/test_fileio.py:338
Method
test_is_dir
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:342
Method
test_is_dir_follow_symlinks
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:389
Method
test_is_fifo
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:351
Method
test_is_file
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:357
Method
test_is_file_follow_symlinks
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:377
Method
test_is_junction
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:411
Method
test_is_mount
(self)
tests/test_fileio.py:414
Method
test_is_relative_to
(self, arg: str, result: bool)
tests/test_fileio.py:449
Method
test_is_reserved
(self)
tests/test_fileio.py:423
Method
test_is_socket
(self, tmp_path_factory: TempPathFactory)
tests/test_fileio.py:431
Method
test_is_symlink
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:442
Method
test_iterable
(self)
tests/test_itertools.py:407
Method
test_iterable
(self)
tests/test_itertools.py:953
Method
test_iterable_variants
(self)
tests/test_itertools.py:105
Function
test_iterate
()
tests/streams/test_memory.py:103
Method
test_iterate
( self, server_sock: socket.socket, server_addr: tuple[str, int] )
tests/test_sockets.py:426
Method
test_iterate
(self, server_sock: socket.socket, socket_path: Path)
tests/test_sockets.py:1688
Method
test_iterate
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2239
Method
test_iterate
(self, family: AnyIPAddressFamily)
tests/test_sockets.py:2509
Method
test_iterate
(self, peer_socket_path: Path, socket_path: Path)
tests/test_sockets.py:2923
Method
test_iterate
( self, socket_path: Path, peer_socket_path: Path, )
tests/test_sockets.py:3146
Method
test_iterdir
( self, populated_tmpdir: Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:650
Method
test_joinpath
(self, limiter: CapacityLimiter | None)
tests/test_fileio.py:662
Function
test_keyboard_interrupt_does_not_resume_test
(testdir: Pytester)
tests/test_pytest_plugin.py:526
Function
test_keyboardinterrupt_during_test
( testdir: Pytester, anyio_backend_name: str )
tests/test_pytest_plugin.py:500
Method
test_lchmod
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:705
Function
test_level_cancellation
()
tests/test_taskgroups.py:514
Method
test_limit
(self)
tests/test_synchronization.py:785
Method
test_listening_bytes_path
(self, socket_path: Path)
tests/test_sockets.py:2034
Method
test_listening_invalid_ascii
(self, socket_path: Path)
tests/test_sockets.py:2041
Method
test_local_path_bytes
(self, socket_path: Path)
tests/test_sockets.py:3015
Method
test_local_path_invalid_ascii
(self, socket_path: Path)
tests/test_sockets.py:3024
Method
test_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
Method
test_loop_factory
(self)
tests/test_eventloop.py:124
Method
test_lru_eviction
(self)
tests/test_functools.py:168
Method
test_lstat
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:715
Function
test_main_task_name
( anyio_backend_name: str, anyio_backend_options: dict[str, Any] )
tests/test_debugging.py:30
Method
test_manual_acquire
(self)
tests/test_synchronization.py:50
Method
test_manual_acquire
(self)
tests/test_synchronization.py:364
Method
test_manual_acquire
(self)
tests/test_synchronization.py:554
Function
test_map_empty_args
()
tests/test_concurrency_utils.py:128
Function
test_map_propagates_exception
()
tests/test_concurrency_utils.py:135
Function
test_map_results_ordering
()
tests/test_concurrency_utils.py:112
Method
test_match
(self)
tests/test_fileio.py:675
Method
test_max_value
(self, max_value: int | None)
tests/test_synchronization.py:645
Method
test_max_value_exceeded
(self)
tests/test_synchronization.py:649
Function
test_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
Method
test_mkdir
(self, tmp_path: pathlib.Path)
tests/test_fileio.py:749
Function
test_mkdtemp
(prefix: AnyStr)
tests/test_tempfile.py:303
Function
test_mkstemp
( suffix: AnyStr, prefix: AnyStr, text: bool, content: AnyStr, )
tests/test_tempfile.py:272
Function
test_module_scoped_task_group_fixture
(testdir: Pytester)
tests/test_pytest_plugin.py:263
Method
test_move
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:485
Method
test_move_into
( self, tmp_path: pathlib.Path, limiter: CapacityLimiter | None )
tests/test_fileio.py:500
Function
test_move_on_after
(delay: float)
tests/test_taskgroups.py:785
Function
test_move_on_after_no_timeout
()
tests/test_taskgroups.py:796
Function
test_move_on_at
(delay: float)
tests/test_taskgroups.py:860
Function
test_move_on_at_no_timeout
()
tests/test_taskgroups.py:871
Function
test_multi_listener
(tmp_path_factory: TempPathFactory)
tests/test_sockets.py:2088
Method
test_multiple_threads
( self, provider: BlockingPortalProvider, anyio_backend_name: str )
tests/test_to_thread.py:439
Function
test_multiple_waiters
()
tests/test_futures.py:138
Method
test_n_one_creates_peekable_iterator
(self)
tests/test_itertools.py:974
Method
test_n_zero
(self)
tests/test_itertools.py:971
Method
test_name_property
(self)
tests/test_fileio.py:244
Method
test_named_temporary_file
(self)
tests/test_tempfile.py:41
Function
test_nan_deadline_rejected
A NaN deadline raises ValueError on all backends.
tests/test_taskgroups.py:2579
Function
test_nan_deadline_setter_rejected
Assigning a NaN deadline raises ValueError on all backends.
tests/test_taskgroups.py:2585
Method
test_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
Method
test_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
Method
test_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
Function
test_negative_max_buffer
()
tests/streams/test_memory.py:36
Method
test_negative_r
(self)
tests/test_itertools.py:290
Method
test_negative_r
(self)
tests/test_itertools.py:343
Method
test_negative_r
(self)
tests/test_itertools.py:733
Method
test_negative_repeat
(self)
tests/test_itertools.py:796
Function
test_nested_exception_group_filtering
Test that CancelledErrors are filtered out of nested exception groups containing other exceptions.
tests/test_taskgroups.py:1372
Function
test_nested_fail_after
()
tests/test_taskgroups.py:1224
Function
test_nested_move_on_after
()
tests/test_taskgroups.py:807
Function
test_nested_shield
()
tests/test_taskgroups.py:1244
Function
test_nested_task_group_filtering
Test that CancelledErrors are filtered out of nested exception groups from task groups.
tests/test_taskgroups.py:1306
← previous
next →
2,001–2,100 of 2,553, ranked by callers