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_strict_soft_windows_reclaimed_private_claim_closes_handle
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_windows_publication.py:223
Function
test_strict_soft_windows_recovers_when_withdrawal_thread_cannot_start
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_windows_withdrawal.py:166
Function
test_strict_soft_windows_reports_deferred_delete_error
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_windows_withdrawal.py:128
Function
test_strict_soft_windows_reports_withdrawal_worker_failure
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_windows_withdrawal.py:200
Function
test_strict_soft_windows_retries_an_interrupted_rename
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_windows_publication.py:157
Function
test_strict_soft_windows_unlimited_withdrawal
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_windows_withdrawal.py:115
Function
test_strict_soft_windows_withdraws_after_timeout
( initialized_lock_path: Path, mocker: MockerFixture, timeout: float )
tests/soft/strict/test_windows_withdrawal.py:70
Function
test_strict_soft_write_failure_leaves_no_public_claim
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_lock.py:338
Function
test_strict_wide_directories_are_narrowed_only_when_owned
( # pragma: win32 no cover # pragma: needs hard-link tmp_path: Path, mocker: MockerFixture, *, owned: bo
tests/core/test_settings.py:145
Function
test_subclass_compatibility
(tmp_path: Path)
tests/core/test_singleton.py:70
Function
test_subclass_concurrent_constructors_share_one_singleton
(lock_file: str)
tests/soft/read_write/test_lock_singleton.py:137
Function
test_subclass_forwards_cooperative_class_keywords
(lock_file: str, is_singleton: bool)
tests/soft/read_write/test_lock_singleton.py:98
Function
test_subclass_rejects_recursive_singleton_construction_and_can_retry
(lock_file: str)
tests/soft/read_write/test_lock_singleton.py:121
Function
test_subinterpreter_refusal_precedes_database_access
(tmp_path: Path, mocker: MockerFixture)
tests/sqlite/test_fork_registry.py:26
Function
test_successor_acquire_does_not_consume_a_close_error
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_interruption.py:25
Function
test_sweep_cannot_remove_a_resumed_waiters_hold
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_participant.py:106
Function
test_symlink_same_canonical_path
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:140
Function
test_symlink_same_canonical_path
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_paths.py:102
Function
test_symlinked_lock_file_is_not_followed
(tmp_path: Path, lock_path: Path)
tests/soft/exclusive/test_recovery_filesystem.py:37
Function
test_symlinked_protocol_directory_is_refused
( lock_file: str, tmp_path: Path, lock: SoftReadWriteLock )
tests/soft/read_write/test_lock_storage.py:36
Function
test_sync_context_exit_is_unsupported
(tmp_path: Path)
tests/async_lock/test_acquire_rollback.py:236
Function
test_sync_subclass_forwards_kwargs
(tmp_path: Path)
tests/core/test_subclass_options.py:201
Function
test_sync_with_raises_not_implemented_error
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/async_lock/test_lock.py:121
Function
test_target_rejects_flock_after_a_denied_probe
( # pragma: needs fcntl tmp_path: Path, make_lock: Callable[[Path], UnixFileLock], restricted_cre
tests/native/test_unix_probe.py:325
Function
test_tasks_on_different_event_loops_exclude_each_other
(lock_file: str)
tests/sqlite/test_async_contention.py:219
Function
test_tasks_sharing_a_lock_hold_the_read_lock_together
(lock_file: str)
tests/sqlite/test_async_contention.py:54
Function
test_tasks_sharing_a_lock_take_the_write_lock_one_at_a_time
(lock_file: str)
tests/sqlite/test_async_contention.py:26
Function
test_tasks_sharing_a_lock_take_the_write_lock_one_at_a_time_with_four_workers
(lock_file: str)
tests/sqlite/test_async_contention.py:47
Function
test_temporary_commit_files_are_swept
(lock_file: str)
tests/soft/read_write/test_lock_recovery.py:235
Function
test_the_sweep_collects_orphans_a_batch_at_a_time
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_sweep.py:271
Function
test_the_sweep_forgets_peers_that_left
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_sweep.py:238
Function
test_third_party_descriptor_is_closed_in_child
(tmp_path: Path)
tests/core/test_fork_backends.py:25
Function
test_thrashing_with_thread_pool_global_lock
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_threading.py:145
Function
test_thrashing_with_thread_pool_lock_recreated_in_each_thread
( tmp_path: Path, lock_type: type[BaseFileLock], )
tests/core/test_threading.py:159
Function
test_thrashing_with_thread_pool_passing_lock_to_threads
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_threading.py:125
Function
test_thread_interpreter_identity
(mocker: MockerFixture, *, main: bool)
tests/sqlite/test_fork_registry.py:35
Function
test_thread_local_lock_releases_while_another_thread_waits_for_it
( tmp_path: Path, lock_type: type[BaseAsyncFileLock] )
tests/async_lock/test_admission.py:206
Function
test_thread_local_run_in_executor
(tmp_path: Path)
tests/async_lock/test_acquire.py:168
Function
test_thread_local_setter_visibility
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_singleton.py:29
Function
test_thread_lock_checks_cancellation_after_repolling
()
tests/core/test_timeout.py:223
Function
test_thread_with_its_own_instance_contends_instead_of_raising
( sync_locks: tuple[ReadWriteLock, ReadWriteLock], other_thread: ThreadPoolExecutor )
tests/sqlite/test_transactions_threads.py:91
Function
test_threaded_lock_different_lock_obj
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_threading.py:91
Function
test_threaded_shared_lock_obj
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_threading.py:43
Function
test_timed_release_preserves_recursion
(lock_path: Path, thread_local: bool)
tests/soft/strict/test_release.py:36
Function
test_timed_release_respects_thread_ownership
(lock_path: Path)
tests/soft/strict/test_release_worker.py:113
Function
test_timed_release_with_an_open_windows_reader
(lock_path: Path, caplog: pytest.LogCaptureFixture)
tests/soft/strict/test_release_wait.py:74
Function
test_timeout
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_timeout.py:28
Function
test_timeout_at_exact_deadline_with_virtual_clock
( tmp_path: Path, lock_type: type[BaseFileLock], mocker: MockerFixture )
tests/core/test_timeout_validation.py:156
Function
test_timeout_attribute
(extract: Callable[[Timeout], str], expected: str)
tests/core/test_errors.py:24
Function
test_timeout_behavior
(lock_file: str)
tests/sqlite/test_lock.py:113
Function
test_timeout_escapes_a_holder_hostname_outside_the_grammar
( lock_path: Path, lock_type: type[SoftFileLock], record: str )
tests/soft/exclusive/test_recovery.py:97
Function
test_timeout_expires
(lock_file: str)
tests/sqlite/test_async.py:148
Function
test_timeout_for_sqlite
(timeout: float, blocking: bool, already_waited: float, milliseconds: int)
tests/sqlite/test_lock_settings.py:35
Function
test_timeout_for_sqlite_negative_timeout_raises
()
tests/sqlite/test_lock_settings.py:39
Function
test_timeout_leaves_out_a_holder_on_this_host
(lock_path: Path)
tests/soft/exclusive/test_recovery.py:106
Function
test_timeout_names_a_holder_it_cannot_probe
()
tests/core/test_errors.py:28
Function
test_timeout_names_a_holder_on_another_host
(lock_path: Path, lock_type: type[SoftFileLock], record: str)
tests/soft/exclusive/test_recovery.py:80
Function
test_timeout_names_an_owner_that_recorded_no_pid
(lock_path: Path)
tests/soft/exclusive/test_recovery.py:194
Function
test_timeout_raises
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_lock_contention.py:214
Function
test_timeout_read_expires
(lock_file: str)
tests/sqlite/test_transactions.py:247
Function
test_timeout_setter_rejects_non_number
(timeout: bool | None, tmp_path: Path)
tests/core/test_timeout_validation.py:73
Function
test_timeout_setter_still_takes_a_numeric_string
(timeout: str | bytes, tmp_path: Path)
tests/core/test_timeout_validation.py:81
Function
test_timeout_setter_stores_a_float
(tmp_path: Path)
tests/core/test_timeout_validation.py:115
Function
test_timeout_subclass_taking_only_the_lock_file_pickles
()
tests/core/test_errors.py:35
Function
test_timeout_takes_any_real_number
(timeout: float, tmp_path: Path)
tests/core/test_timeout_validation.py:96
Function
test_timeout_too_large_for_a_float_raises_value_error
(tmp_path: Path)
tests/core/test_timeout_validation.py:110
Function
test_timeout_too_small_for_a_float_stays_negative
(timeout: float, tmp_path: Path)
tests/core/test_timeout_validation.py:105
Function
test_track_sqlite_use_forwards_connect_event
(mocker: MockerFixture)
tests/sqlite/test_fork_registry.py:85
Function
test_track_sqlite_use_ignores_other_events
(mocker: MockerFixture)
tests/sqlite/test_fork_registry.py:91
Function
test_trailing_slash_path_raises_instead_of_retrying
(tmp_path: Path)
tests/native/test_unix_open.py:103
Function
test_transaction_lock_timeout_across_threads
(lock_file: str)
tests/soft/read_write/test_lock_contention.py:138
Function
test_transient_identity_failure_still_cleans_the_marker
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_rollback.py:198
Function
test_two_readers_in_same_process_share_slot
(lock_file: str)
tests/soft/read_write/test_lock_contention.py:184
Function
test_umask
(tmp_path: Path)
tests/native/test_unix_modes.py:41
Function
test_umask_soft
(tmp_path: Path)
tests/soft/exclusive/test_marker_ownership.py:56
Function
test_unbounded_acquire_outlasts_an_active_release
( deferred_release: tuple[StrictSoftFileLock, ReleasePendingError, threading.Event], contender: Callab
tests/soft/strict/test_release_wait.py:40
Function
test_unix_acquire_without_o_nofollow
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/native/test_unix_fallback.py:455
Function
test_unix_context_exit_propagates_unlock_failure
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_native_release.py:57
Function
test_unix_release_keeps_lock_held_when_unlock_fails
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_native_release.py:44
Function
test_unix_soft_fallback_keeps_a_replaced_file
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_fallback.py:466
Function
test_unlimited_acquire_beside_another_thread_waits_for_the_holder
( sync_locks: tuple[ReadWriteLock, ReadWriteLock], )
tests/sqlite/test_transactions_settings.py:94
Function
test_unlink_other_errors_propagate
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:265
Function
test_unlink_tolerates_a_refused_removal
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:259
Function
test_unlock_descriptor_failure_allows_retry
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_descriptor.py:163
Function
test_unlock_failure_keeps_descriptor_registered
(tmp_path: Path)
tests/core/test_fork_backends.py:96
Function
test_unparseable_lock_changed_under_its_old_mtime_and_inode_not_evicted
( # pragma: win32 no cover lock_path: Path, )
tests/soft/exclusive/test_recovery.py:232
Function
test_unparseable_lock_evicted_when_old
(lock_path: Path, content: bytes)
tests/soft/exclusive/test_recovery.py:212
Function
test_unparseable_lock_not_evicted_when_fresh
(lock_path: Path, content: bytes)
tests/soft/exclusive/test_recovery.py:225
Function
test_unparseable_lock_with_an_ancient_mtime_not_evicted_on_first_sight
(lock_path: Path)
tests/soft/exclusive/test_recovery.py:277
Function
test_unreadable_mountinfo_keeps_only_starttime
(mocker: MockerFixture)
tests/identity/test_process.py:302
Function
test_unreadable_record_names_no_owner
(tmp_path: Path, record: str)
tests/soft/test_records.py:50
Function
test_unrelated_acquisitions_reach_filesystem_boundary_concurrently
( # pragma: needs fork tmp_path: Path, mocker: MockerFixture )
tests/core/test_fork_descriptors.py:97
Function
test_unset_file_mode_sentinel_value
()
tests/core/test_settings.py:185
Function
test_unshared_singleton_follows_chdir
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:243
Function
test_unverified_descriptor_does_not_close_reused_child_fd
(tmp_path: Path)
tests/core/test_fork_backends.py:215
Function
test_upgrade_read_to_write_prohibited
(lock_file: str)
tests/sqlite/test_transactions.py:61
Function
test_version_attribute_is_the_version_string
()
tests/test_public_api.py:42
Function
test_virtualenv
(tmp_path: Path)
tests/test_installed_package.py:17
Function
test_wait_for_turn_returns_immediately_when_already_done
()
tests/async_lock/test_transitions.py:247
Function
test_wait_message_logged
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_acquire.py:139
← previous
next →
3,301–3,400 of 3,548, ranked by callers