Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tox-dev/filelock
/ functions
Functions
3,548 in github.com/tox-dev/filelock
⨍
Functions
3,548
◇
Types & classes
212
↳
Endpoints
35
Function
test_non_blocking_transaction_lock_timeout
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_transactions.py:297
Function
test_non_blocking_with_timeout_no_value_error
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_transactions.py:314
Function
test_non_blocking_write_fails_when_read_held
(lock_file: str)
tests/sqlite/test_transactions.py:227
Function
test_non_blocking_writer_contended_raises
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_lock_contention.py:228
Function
test_non_executor
(lock_type: type[BaseAsyncFileLock], thread_local: bool, tmp_path: Path)
tests/async_lock/test_backend_calls.py:31
Function
test_non_executor_immediate_acquire_precedes_scheduled_callback
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:379
Function
test_non_executor_release_interrupted_before_the_backend_completes
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, mocker: MockerFixture )
tests/async_lock/test_release.py:28
Function
test_non_executor_release_interrupted_by_a_signal_before_the_backend_completes
( tmp_path: Path, mocker: MockerFixture )
tests/async_lock/test_release.py:50
Function
test_non_singleton_creates_new_instance
(lock_file: str)
tests/sqlite/test_lock_settings.py:128
Function
test_non_singleton_returns_distinct_instances
(lock_file: str)
tests/soft/read_write/test_lock_singleton.py:161
Function
test_non_thread_local_setter_visibility
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_singleton.py:47
Function
test_normal_release_removes_own_marker
(lock_path: Path)
tests/soft/exclusive/test_publication_release.py:75
Function
test_note_sqlite_use_records_use_on_pypy
(mocker: MockerFixture)
tests/sqlite/test_fork_registry.py:69
Function
test_old_soft_holder_blocks_soft_client
( tmp_path: Path, old_client_env: dict[str, str] )
tests/soft/strict/test_compatibility.py:82
Function
test_old_soft_holder_blocks_strict_client
( tmp_path: Path, old_client_env: dict[str, str] )
tests/soft/strict/test_compatibility.py:59
Function
test_on_acquired_and_release_failure_group
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_on_acquired.py:142
Function
test_on_acquired_async_failure_releases
(tmp_path: Path)
tests/async_lock/test_backend_calls.py:171
Function
test_on_acquired_async_soft_rejects
(tmp_path: Path)
tests/async_lock/test_backend_calls.py:143
Function
test_on_acquired_defaults_none
(tmp_path: Path)
tests/core/test_on_acquired.py:26
Function
test_on_acquired_fails_closed_on_enosys
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_on_acquired.py:179
Function
test_on_acquired_failure_releases_lock
(tmp_path: Path)
tests/core/test_on_acquired.py:124
Function
test_on_acquired_fires_once_per_physical_acquire
(tmp_path: Path)
tests/core/test_on_acquired.py:65
Function
test_on_acquired_noop_hook_allows_acquire
(tmp_path: Path)
tests/core/test_on_acquired.py:38
Function
test_on_acquired_not_called_for_contender
(tmp_path: Path)
tests/core/test_on_acquired.py:77
Function
test_on_acquired_property_reflects_argument
(tmp_path: Path)
tests/core/test_on_acquired.py:30
Function
test_on_acquired_reentrant_acquire_still_registers_holder
(tmp_path: Path)
tests/core/test_on_acquired.py:288
Function
test_on_acquired_rejected_by_soft_lock
(tmp_path: Path)
tests/core/test_on_acquired.py:190
Function
test_on_acquired_rollback_group_detaches_release_context
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError] )
tests/core/test_on_acquired.py:153
Function
test_on_acquired_rollback_group_detaches_release_context
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError] )
tests/async_lock/test_backend_calls.py:185
Function
test_on_acquired_runs_after_mode
(tmp_path: Path)
tests/core/test_on_acquired.py:92
Function
test_on_acquired_runs_before_acquire_returns
(tmp_path: Path)
tests/core/test_on_acquired.py:47
Function
test_on_acquired_runs_in_backend_executor
(tmp_path: Path)
tests/async_lock/test_backend_calls.py:150
Function
test_on_acquired_writes_survive_contention
(tmp_path: Path)
tests/core/test_on_acquired.py:107
Function
test_open_file_with_unknown_overflow_uid
( # pragma: win32 no cover # pragma: darwin no cover tmp_path: Path, mocker: MockerFixture, uid_map: byt
tests/filesystem/test_ownership.py:72
Function
test_open_mode
(lock_type: type[BaseFileLock], mode: int, expected: int, tmp_path: Path)
tests/core/test_settings.py:51
Function
test_open_other_errors_propagate
( tmp_path: Path, mocker: MockerFixture, call: Callable[[OsFiles, str], object] )
tests/soft/read_write/test_storage.py:50
Function
test_opposite_mode_from_another_thread_names_the_per_thread_instance_fix
( sync_locks: tuple[ReadWriteLock, ReadWriteLock], other_thread: ThreadPoolExecutor, held: Callabl
tests/sqlite/test_transactions_threads.py:80
Function
test_oserror_after_open_does_not_retry
( # pragma: needs fcntl tmp_path: Path, prepare: Callable[[Path], None] )
tests/native/test_unix_probe.py:153
Function
test_oserror_after_read_only_open_propagates
(tmp_path: Path)
tests/native/test_unix_probe.py:166
Function
test_out_of_range_pid_not_evicted_when_fresh
(lock_path: Path)
tests/soft/exclusive/test_recovery.py:271
Function
test_out_of_range_pid_self_heals_when_old
(lock_path: Path, pid: int)
tests/soft/exclusive/test_recovery.py:265
Function
test_overfull_generation_sweep_forgets_missing_temporary_files
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_sweep.py:157
Function
test_overlapping_coroutine_transitions_close_every_pending_descriptor
(tmp_path: Path)
tests/core/test_fork_transitions.py:109
Function
test_overlapping_observers_keep_a_successors_pending_release
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_observers.py:98
Function
test_overwrite_does_not_block_on_a_fifo
(tmp_path: Path)
tests/soft/read_write/test_storage.py:236
Function
test_overwrite_does_not_block_on_a_fifo_with_a_reader
(tmp_path: Path)
tests/soft/read_write/test_storage.py:246
Function
test_overwrite_rewrites_the_record_it_created
(tmp_path: Path)
tests/soft/read_write/test_storage.py:190
Function
test_overwrite_spares_a_file_swapped_in_for_the_record
(tmp_path: Path, swap: str)
tests/soft/read_write/test_storage.py:198
Function
test_overwrite_spares_a_file_that_inherited_the_inode_number
(tmp_path: Path)
tests/soft/read_write/test_storage.py:208
Function
test_overwrite_spares_a_path_that_refuses_the_open
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:229
Function
test_overwrite_spares_a_record_with_a_second_name
(tmp_path: Path)
tests/soft/read_write/test_storage.py:221
Function
test_owner_is_stale_dead_owner_by_start_token_reclaimed
(boot_flip: int, scans: int, mocker: MockerFixture)
tests/identity/test_process.py:420
Function
test_owner_is_stale_dead_process_reclaimed
()
tests/identity/test_process.py:206
Function
test_owner_is_stale_foreign_host_never_reclaimed
()
tests/identity/test_process.py:202
Function
test_owner_is_stale_live_process_across_time_namespaces_held
(mocker: MockerFixture)
tests/identity/test_process.py:227
Function
test_owner_is_stale_live_process_behind_an_outer_proc_held
(mocker: MockerFixture)
tests/identity/test_process.py:236
Function
test_owner_is_stale_live_process_boot_id_hidden_from_contender_held
(hide_boot_id: Callable[[], None])
tests/identity/test_process.py:253
Function
test_owner_is_stale_live_process_boot_id_hidden_from_holder_held
()
tests/identity/test_process.py:246
Function
test_owner_is_stale_live_process_matching_token_held
()
tests/identity/test_process.py:214
Function
test_owner_is_stale_live_process_mismatched_token_reclaimed
()
tests/identity/test_process.py:219
Function
test_owner_is_stale_live_process_unreadable_token_held
(mocker: MockerFixture)
tests/identity/test_process.py:449
Function
test_owner_is_stale_live_process_with_boot_id_mounted_over_for_contender_held
( mount_over_boot_id: Callable[[bool], None], *, same_device: bool )
tests/identity/test_process.py:262
Function
test_owner_is_stale_live_process_with_boot_id_mounted_over_for_holder_held
( mount_over_boot_id: Callable[[bool], None], *, same_device: bool )
tests/identity/test_process.py:273
Function
test_owner_is_stale_live_process_without_token_held
()
tests/identity/test_process.py:210
Function
test_owner_is_stale_owner_running_in_another_namespace_contender_with_boottime_offset_held
( mocker: MockerFixture, )
tests/identity/test_process.py:375
Function
test_owner_is_stale_owner_running_in_another_namespace_contender_without_boot_id_held
( hide_boot_id: Callable[[], None], )
tests/identity/test_process.py:364
Function
test_owner_is_stale_owner_running_in_another_namespace_held
(recorded: Callable[[int], int])
tests/identity/test_process.py:356
Function
test_owner_is_stale_recycled_pid_boot_id_hidden_from_contender_reclaimed
( hide_boot_id: Callable[[], None], )
tests/identity/test_process.py:322
Function
test_owner_is_stale_recycled_pid_boot_id_hidden_from_holder_reclaimed
()
tests/identity/test_process.py:315
Function
test_owner_is_stale_sibling_pid_namespace_never_reclaimed
(mocker: MockerFixture)
tests/identity/test_process.py:439
Function
test_owner_is_stale_task_name_shaped_like_a_namespace_line_reclaimed
( separator: str, forged: str, mocker: MockerFixture )
tests/identity/test_process.py:397
Function
test_owner_is_stale_without_a_readable_proc_reclaimed
(mocker: MockerFixture)
tests/identity/test_process.py:429
Function
test_ownership_without_native_bindings
( # pragma: linux cover sticky_fd: int, reported_owner: Callable[[], int | None] )
tests/filesystem/test_ownership.py:204
Function
test_parent_callback_rejects_reentrant_singleton_construction
(tmp_path: Path)
tests/core/test_fork_construction.py:115
Function
test_parent_keeps_hold_during_fork
( tmp_path: Path, mocker: MockerFixture, thread_offset: int, namespace: tuple[int, int] | None )
tests/core/test_fork_namespaces.py:140
Function
test_parent_retains_lock_across_fork
(tmp_path: Path)
tests/soft/read_write/test_lock_fork.py:159
Function
test_parked_caller_settles_a_head_whose_hand_off_was_lost
(mocker: MockerFixture)
tests/async_lock/test_transitions.py:210
Function
test_participant_reads_the_clock_patched_after_construction
(lock_file: str, mocker: MockerFixture)
tests/soft/read_write/test_heartbeat.py:305
Function
test_pending_close_reports_the_original_error
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_worker.py:68
Function
test_pending_descriptor_with_unknown_identity_is_preserved_in_child
(tmp_path: Path)
tests/core/test_fork_transitions.py:187
Function
test_pending_release_allows_unbounded_acquire_cancellation
( deferred_release: tuple[StrictSoftFileLock, ReleasePendingError, threading.Event], contender: Callab
tests/soft/strict/test_release_wait.py:63
Function
test_pending_release_excludes_a_peer
( lock_path: Path, mocker: MockerFixture, thread_local: bool, finish: Callable[[StrictSoftFileLock], None]
tests/soft/strict/test_release_worker.py:31
Function
test_pending_release_respects_the_acquires_deadline
( deferred_release: tuple[StrictSoftFileLock, ReleasePendingError, threading.Event], )
tests/soft/strict/test_release_wait.py:22
Function
test_permission_error_fallback_without_o_creat
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix.py:56
Function
test_permission_error_propagates_when_file_missing
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix.py:79
Function
test_pid
(lock_path: Path, content: bytes, expected: int | None)
tests/soft/exclusive/test_lock.py:38
Function
test_pid_namespace_identity
( mocker: MockerFixture, result: os.stat_result | OSError, expected: tuple[int, int] | None )
tests/core/test_fork_namespaces.py:158
Function
test_pid_while_locked
(lock_path: Path)
tests/soft/exclusive/test_lock.py:43
Function
test_pid_without_a_lock_file
(lock_path: Path)
tests/soft/exclusive/test_lock.py:22
Function
test_poison_after_fork_records_path_and_identity
(identity: tuple[int, int] | None)
tests/sqlite/test_fork_registry.py:77
Function
test_poll_interval_acquire_override
(lock_type: type[BaseFileLock], tmp_path: Path, steady_clock: MockType)
tests/core/test_timeout.py:167
Function
test_poll_interval_rejects_invalid_value
( lock_type: type[BaseFileLock], entry_point: Literal["constructor", "setter", "acquire"], bad_val
tests/core/test_timeout.py:195
Function
test_poll_interval_rejects_invalid_value
( lock_type: type[BaseAsyncFileLock], entry_point: Literal["constructor", "setter", "acquire"], ba
tests/async_lock/test_acquire.py:43
Function
test_poll_interval_used_by_context_manager
( lock_type: type[BaseFileLock], tmp_path: Path, steady_clock: MockType )
tests/core/test_timeout.py:146
Function
test_poll_intervall_deprecated
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_timeout.py:102
Function
test_poll_wait_stays_within_timeout
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_timeout_validation.py:146
Function
test_poll_wait_stays_within_timeout
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:74
Function
test_post_open_failure_closes_fd
(tmp_path: Path, mocker: MockerFixture, failing: str)
tests/native/test_unix_modes.py:128
Function
test_prepare_checks_the_directories_once_unless_forced
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:299
Function
test_prepare_creates_missing_parents
(tmp_path: Path)
tests/soft/read_write/test_storage.py:309
← previous
next →
2,601–2,700 of 3,548, ranked by callers