MCPcopy Create free account

hub / github.com/tox-dev/filelock / functions

Functions3,548 in github.com/tox-dev/filelock

Functiontest_async_release_force
(tmp_path: Path)
tests/soft/read_write/test_async.py:160
Functiontest_async_release_from_a_task_that_does_not_hold_raises
(tmp_path: Path)
tests/soft/read_write/test_async.py:244
Functiontest_async_release_leaves_a_sync_reader_of_the_same_singleton_holding
(lock_file: str)
tests/sqlite/test_async.py:55
Functiontest_async_release_through_a_wrapper_without_a_level_raises
(lock_file: str)
tests/sqlite/test_async_singletons.py:242
Functiontest_async_release_through_each_wrapper_ends_the_hold_after_the_last
(lock_file: str)
tests/sqlite/test_async_singletons.py:213
Functiontest_async_release_whose_submission_failed_never_runs
( tmp_path: Path, make: Callable[ [Path, ThreadPoolExecutor], tuple[AsyncReadWriteLock
tests/async_lock/test_read_write.py:107
Functiontest_async_shared_singleton_refuses_moved_relative_path
( lock_type: type[BaseAsyncFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPa
tests/async_lock/test_paths.py:82
Functiontest_async_singleton_handed_out_while_finalizing_keeps_its_hold
(tmp_path: Path, thread_local: bool)
tests/async_lock/test_finalization.py:215
Functiontest_async_singleton_held_before_chdir_re_enters_by_absolute_path
( lock_type: type[BaseAsyncFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPa
tests/async_lock/test_paths.py:68
Functiontest_async_singleton_rejects_reuse_with_another_option
( tmp_path: Path, lock_type: type[BaseAsyncFileLock], async_options: _AsyncOptions, option: Li
tests/async_lock/test_singleton.py:52
Functiontest_async_singleton_reuses_the_instance_for_the_same_options
( tmp_path: Path, lock_type: type[BaseAsyncFileLock], async_options: _AsyncOptions )
tests/async_lock/test_singleton.py:43
Functiontest_async_soft_acquire_keeps_its_hold_when_close_fails
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async_close.py:123
Functiontest_async_soft_acquire_waiting_in_backend_during_close_is_refused
( tmp_path: Path, is_singleton: bool, mode: Literal["read", "write"], mocker: MockerFixture )
tests/soft/read_write/test_async_close.py:92
Functiontest_async_soft_canceled_acquire_leaves_a_sync_reader_of_the_same_singleton_holding
( tmp_path: Path, mocker: MockerFixture )
tests/soft/read_write/test_async_hold.py:181
Functiontest_async_soft_cancelled_acquire_after_failed_close_reconciles_hold
( tmp_path: Path, mocker: MockerFixture, release_error: OSError | None, expected_error: type[B
tests/soft/read_write/test_async_close.py:171
Functiontest_async_soft_cancelled_acquire_during_close_leaves_no_hold
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async_close.py:222
Functiontest_async_soft_close_after_a_sync_end_of_the_shared_singleton_returns
( tmp_path: Path, sync_end: Callable[[SoftReadWriteLock], object] )
tests/soft/read_write/test_async_close.py:52
Functiontest_async_soft_close_cancellation_refuses_later_acquires
(tmp_path: Path)
tests/soft/read_write/test_async_close.py:261
Functiontest_async_soft_close_keeps_the_hold_taken_through_another_wrapper
( tmp_path: Path, mode: Literal["read", "write"] )
tests/soft/read_write/test_async_hold.py:42
Functiontest_async_soft_close_of_a_singleton_wrapper_ends_the_holds_taken_through_it
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:127
Functiontest_async_soft_close_of_the_entering_wrapper_keeps_a_level_taken_through_another
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:57
Functiontest_async_soft_close_of_the_nested_wrapper_ends_only_its_own_level
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:71
Functiontest_async_soft_close_of_waiting_writer_unblocks_other_readers
(tmp_path: Path)
tests/soft/read_write/test_async_close.py:311
Functiontest_async_soft_close_stops_a_pending_acquire
( tmp_path: Path, is_singleton: bool, mocker: MockerFixture )
tests/soft/read_write/test_async_close.py:335
Functiontest_async_soft_close_wakes_its_table_waiter
( tmp_path: Path, held_mode: Literal["read", "write"], waiting_mode: Literal["read", "write"] )
tests/soft/read_write/test_async_close.py:291
Functiontest_async_soft_forced_release_through_a_wrapper_without_a_level_releases_nothing
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:99
Functiontest_async_soft_lifetime_polling_does_not_repeat_warning
(tmp_path: Path)
tests/soft/exclusive/test_lock_lifetime.py:187
Functiontest_async_soft_non_expired_lock_not_broken
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:221
Functiontest_async_soft_read_after_a_failed_release_waits_for_another_writer
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:141
Functiontest_async_soft_read_after_a_sync_close_of_the_shared_singleton_raises
(tmp_path: Path)
tests/soft/read_write/test_async_close.py:32
Functiontest_async_soft_read_arriving_during_close_is_refused
(tmp_path: Path, is_singleton: bool)
tests/soft/read_write/test_async_close.py:78
Functiontest_async_soft_read_joining_a_lost_hold_raises
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:199
Functiontest_async_soft_read_through_another_wrapper_during_close_holds_the_lock
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:29
Functiontest_async_soft_read_write_child_with_matching_pid
( tmp_path: Path, mocker: MockerFixture )
tests/core/test_fork_namespaces.py:281
Functiontest_async_soft_release_after_a_sync_forced_release_raises_not_held_by_this_task
(tmp_path: Path)
tests/soft/read_write/test_async_close.py:66
Functiontest_async_soft_release_leaves_a_sync_reader_of_the_same_singleton_holding
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:169
Functiontest_async_soft_release_retried_after_the_hold_was_dropped_raises
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:157
Functiontest_async_soft_release_through_a_wrapper_without_a_level_raises
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:113
Functiontest_async_soft_release_through_each_wrapper_ends_the_hold_after_the_last
(tmp_path: Path)
tests/soft/read_write/test_async_hold.py:84
Functiontest_async_strict_lock_rejects_sync_release_deadline
(lock_path: Path)
tests/soft/strict/test_release.py:13
Functiontest_async_strict_publishes_a_held_claim
(marker: Path)
tests/async_lock/test_backends.py:40
Functiontest_async_strict_soft_matches_claim_protocol
(tmp_path: Path)
tests/soft/strict/test_lock.py:412
Functiontest_async_strict_soft_relative_release_uses_acquisition_directory
( working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch, )
tests/soft/strict/test_directories.py:44
Functiontest_async_strict_soft_waiter_keeps_acquisition_directory
( working_directories: tuple[Path, Path], )
tests/soft/strict/test_directories.py:103
Functiontest_async_strict_treats_a_foreign_marker_as_contention
(marker: Path)
tests/async_lock/test_backends.py:29
Functiontest_async_subclass_forwards_kwargs
(tmp_path: Path)
tests/core/test_subclass_options.py:261
Functiontest_async_tasks_sharing_a_lock_hold_the_read_lock_together
(tmp_path: Path)
tests/soft/read_write/test_async.py:224
Functiontest_async_tasks_sharing_a_lock_take_the_write_lock_one_at_a_time
(tmp_path: Path)
tests/soft/read_write/test_async.py:199
Functiontest_async_thread_local_del_inside_a_running_loop_releases_another_threads_hold
(tmp_path: Path)
tests/async_lock/test_finalization.py:183
Functiontest_async_write_acquire_on_a_worker_holding_the_sync_write_lock_raises
( tmp_path: Path, worker: ThreadPoolExecutor, make: Callable[ [Path, ThreadPoolExecutor],
tests/async_lock/test_read_write.py:87
Functiontest_async_write_hold_refuses_a_sync_writer_on_the_entering_worker
( tmp_path: Path, worker: ThreadPoolExecutor, make: Callable[ [Path, ThreadPoolExecutor],
tests/async_lock/test_read_write.py:47
Functiontest_async_write_release_lands_on_another_executor_thread
(tmp_path: Path)
tests/soft/read_write/test_async_executor.py:114
Functiontest_async_writer_times_out_behind_reader
(tmp_path: Path)
tests/soft/read_write/test_async.py:254
Functiontest_async_zero_write_rolls_back_acquire
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_release.py:132
Functiontest_asyncio_module_dir_lists_only_its_public_api
()
tests/test_asyncio.py:6
Functiontest_atexit_releases_held_lock
(lock_file: str, tmp_path: Path, owner: str)
tests/soft/read_write/test_lock_shutdown.py:26
Functiontest_attempting_to_acquire
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_acquire.py:175
Functiontest_attempting_to_acquire_branch
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_acquire.py:156
Functiontest_attempting_to_release
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_release.py:78
Functiontest_audit_hook_survives_interpreter_shutdown
()
tests/core/test_fork_shutdown.py:91
Functiontest_audit_rejects_process_creation_inside_descriptor_transition
( tmp_path: Path, event: Literal["os.fork", "os.forkpty", "_posixsubprocess.fork_exec"], )
tests/core/test_fork_audit.py:50
Functiontest_audit_veto_does_not_leave_a_marker
(lock_path: Path)
tests/soft/exclusive/test_publication.py:82
Functiontest_backend_cancellation_after_acquire_rolls_back
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:30
Functiontest_backend_cancellation_rollback_failure_chains
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:52
Functiontest_backend_cancellation_rollback_failure_groups
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:107
Functiontest_backend_exports_reject_unknown_names
(package: str)
tests/test_lazy_import.py:121
Functiontest_bad_lock_file
( lock_type: type[BaseFileLock], expected_error: type[OSError], expected_errno: tuple[int, ...] |
tests/core/test_lock.py:156
Functiontest_bad_lock_file_null_byte
(lock_type: type[BaseFileLock])
tests/core/test_lock.py:171
Functiontest_balanced_acquire_in_hook
(tmp_path: Path)
tests/core/test_on_acquired.py:265
Functiontest_blocked_contender_still_evicts_stale_readers
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_participant.py:241
Functiontest_blocking_acquire_rejects_nan_argument
(lock_type: type[BaseFileLock], nan: float, tmp_path: Path)
tests/core/test_timeout_validation.py:43
Functiontest_blocking_acquire_rejects_nan_constructor_timeout
( lock_type: type[BaseFileLock], nan: float, tmp_path: Path )
tests/core/test_timeout_validation.py:32
Functiontest_blocking_acquire_rejects_nan_timeout
( lock_type: type[BaseAsyncFileLock], lock_timeout: float, call_timeout: float | None, tmp_path: Path )
tests/async_lock/test_owners.py:55
Functiontest_blocking_acquire_without_timeout_waits_for_release
(lock_file: str)
tests/soft/read_write/test_lock_contention.py:33
Functiontest_blocking_setter_rejects_non_bool
(tmp_path: Path)
tests/core/test_timeout_validation.py:121
Functiontest_boot_id_with_non_ascii_mountpoint
(tmp_path: Path, mocker: MockerFixture)
tests/identity/test_process.py:285
Functiontest_break_lock
(lock_path: Path)
tests/soft/exclusive/test_lock.py:85
Functiontest_break_lock_file_break_name_is_unguessable
(stale_lock: Path, mocker: MockerFixture)
tests/filesystem/test_exchange_recovery.py:336
Functiontest_break_lock_file_keeps_a_marker_recreated_after_the_recheck
( stale_lock: Path, mocker: MockerFixture, on_break_recheck: Callable[[Path, Callable[[], None]],
tests/filesystem/test_exchange.py:90
Functiontest_break_lock_file_leaves_a_marker_recreated_since_the_stale_check
( stale_lock: Path, mocker: MockerFixture, recreate: Callable[[Path], None] )
tests/filesystem/test_exchange.py:133
Functiontest_break_lock_file_leaves_a_recreated_marker_aside_where_links_are_refused
( # pragma: win32 cover stale_lock: Path, mocker: MockerFixture, on_break_recheck: Callable[[Path, Callab
tests/filesystem/test_exchange_recovery.py:224
Functiontest_break_lock_file_leaves_the_marker_where_the_exchange_fails
( # pragma: win32 no cover stale_lock: Path, mocker: MockerFixture, error: int )
tests/filesystem/test_exchange_recovery.py:244
Functiontest_break_lock_file_lets_acquire_retry_after_the_marker_vanishes
( stale_lock: Path, on_break_recheck: Callable[[Path, Callable[[], None]], None] )
tests/filesystem/test_exchange_recovery.py:121
Functiontest_break_lock_file_never_links_a_symlink_swapped_in_before_the_take
( # pragma: needs symlink stale_lock: Path, mocker: MockerFixture, on_break_recheck: Callable[[Path, Call
tests/filesystem/test_exchange.py:229
Functiontest_break_lock_file_never_links_a_symlink_swapped_in_under_the_break_name
( # pragma: needs symlink stale_lock: Path, mocker: MockerFixture )
tests/filesystem/test_exchange.py:248
Functiontest_break_lock_file_put_back_never_replaces_a_marker_at_the_path
( # pragma: win32 cover stale_lock: Path, mocker: MockerFixture )
tests/filesystem/test_exchange.py:195
Functiontest_break_lock_file_restores_a_peer_marker_taken_by_exchange
( # pragma: win32 no cover stale_lock: Path, mocker: MockerFixture )
tests/filesystem/test_exchange.py:106
Functiontest_break_lock_file_skips_a_marker_under_an_oplock
( # pragma: win32 cover stale_lock: Path, hold_oplock: Callable[[Path], Callable[[], None]] )
tests/filesystem/test_exchange.py:74
Functiontest_break_lock_file_unlinks_a_dead_holders_marker
(stale_lock: Path)
tests/filesystem/test_exchange.py:56
Functiontest_break_lock_without_a_lock_file
(lock_path: Path)
tests/soft/exclusive/test_lock.py:91
Functiontest_break_marker_format
(tmp_path: Path)
tests/filesystem/test_exchange.py:33
Functiontest_break_marker_pid
(record: str, expected: int | None)
tests/filesystem/test_exchange.py:51
Functiontest_busy_shared_gate_leaves_release_unstarted
(lock_path: Path)
tests/soft/strict/test_release_observers.py:23
Functiontest_busy_timeout_recomputed_after_journal_mode
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/sqlite/test_transactions_connection.py:35
Functiontest_callback_lock_retries_after_the_link_count_returns_to_one
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix.py:114
Functiontest_callbacks_registered_before_filelock_can_use_locks
(tmp_path: Path)
tests/core/test_fork_coordination.py:26
Functiontest_caller_and_backend_cancellation_both_surface
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:125
Functiontest_caller_cancellation_preserves_cancelled_executor_acquire
(lock_file: str)
tests/sqlite/test_async_cancellation.py:120
Functiontest_cancel_check_after_n_polls
(lock_type: type[BaseFileLock], tmp_path: Path, mocker: MockerFixture)
tests/core/test_timeout.py:254
Functiontest_cancel_check_false_allows_acquisition
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_timeout.py:297
← previousnext →1,901–2,000 of 3,548, ranked by callers