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_wait_on_previous_release_preserves_current_hold
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_observers.py:204
Function
test_waiter_after_directory_rename_does_not_lock_a_new_file
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path] )
tests/core/test_relative_paths.py:110
Function
test_waiter_fd_cannot_split_lock_after_release
(tmp_path: Path)
tests/native/test_file_identity.py:89
Function
test_waiting_contender_keeps_an_undeletable_record
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_participant.py:229
Function
test_waiting_contender_republishes_a_swept_record
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_participant.py:93
Function
test_windows_cancelling_oplock_wait_ends_a_call_that_still_waits
()
tests/filesystem/windows/test_oplocks.py:184
Function
test_windows_close_failure_still_commits_release
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_native_release.py:83
Function
test_windows_delete_in_progress_is_contention_not_denial
(tmp_path: Path)
tests/native/test_windows.py:35
Function
test_windows_delete_pending_is_treated_as_contention
(tmp_path: Path, mocker: MockerFixture)
tests/filesystem/windows/test_handles.py:18
Function
test_windows_directory_only_the_account_can_write_connects_by_name
( # pragma: win32 cover tmp_path: Path, mocker: MockerFixture )
tests/sqlite/test_connection_windows.py:198
Function
test_windows_directory_pin_retries_after_oplock_break
( # pragma: win32 cover tmp_path: Path, directory: str, mocker: MockerFixture )
tests/soft/strict/test_windows_publication.py:28
Function
test_windows_directory_whose_acl_can_be_rewritten_gets_a_private_link
( # pragma: win32 cover tmp_path: Path, mocker: MockerFixture, right: str )
tests/sqlite/test_connection_windows.py:181
Function
test_windows_directory_whose_acl_cannot_be_read_gets_a_private_link
( # pragma: win32 cover tmp_path: Path, mocker: MockerFixture )
tests/sqlite/test_connection_windows.py:159
Function
test_windows_drive_case_does_not_bypass_deadlock_detection
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_singleton.py:286
Function
test_windows_live_process_marker_retained
(lock_path: Path)
tests/soft/exclusive/test_recovery_filesystem.py:139
Function
test_windows_live_process_marker_without_start_token_retained
(lock_path: Path)
tests/soft/exclusive/test_recovery_filesystem.py:149
Function
test_windows_modules_export_nothing_off_windows
(module: str)
tests/filesystem/windows/test_exports.py:20
Function
test_windows_nonblocking_acquire_does_not_wait_for_oplock
(tmp_path: Path, mocker: MockerFixture)
tests/filesystem/windows/test_oplocks.py:42
Function
test_windows_open_read_without_oplock_wait_can_refuse_delete_sharing
(tmp_path: Path)
tests/filesystem/windows/test_oplocks.py:136
Function
test_windows_open_read_without_oplock_wait_reads_the_file
(tmp_path: Path)
tests/filesystem/windows/test_oplocks.py:123
Function
test_windows_open_read_without_oplock_wait_refuses_a_symlink
(tmp_path: Path)
tests/filesystem/windows/test_oplocks.py:160
Function
test_windows_open_read_without_oplock_wait_reports_a_missing_file
(tmp_path: Path)
tests/filesystem/windows/test_oplocks.py:150
Function
test_windows_open_without_oplock_wait_reports_the_break_as_contention
( oplocked_lock_path: Path, opener: str )
tests/filesystem/windows/test_oplocks.py:173
Function
test_windows_oplock_on_lock_file_does_not_outlast_deadline
( oplocked_lock_path: Path, timeout: float, *, blocking: bool )
tests/filesystem/windows/test_oplocks.py:32
Function
test_windows_owner_only_mode_keeps_out_the_directory_acl
( inheriting_directory: Path, mode: int, *, inherits: bool )
tests/native/test_windows.py:69
Function
test_windows_permanent_denial_raises_without_timeout
(tmp_path: Path, mocker: MockerFixture)
tests/filesystem/windows/test_handles.py:27
Function
test_windows_private_directory_ignores_a_journal_left_beside_the_database
( # pragma: win32 cover tmp_path: Path, )
tests/sqlite/test_connection_side_files.py:117
Function
test_windows_private_link_pin_blocks_rename
(tmp_path: Path)
tests/filesystem/windows/test_directories.py:19
Function
test_windows_private_link_pin_rejects_junction
( # pragma: win32 cover tmp_path: Path, create_junction: Callable[[Path, Path], None] )
tests/filesystem/windows/test_directories.py:30
Function
test_windows_process_probe_closes_handles
(lock_path: Path)
tests/soft/exclusive/test_recovery_filesystem.py:155
Function
test_windows_read_write_keeps_private_link_pinned_until_sqlite_opens
( # pragma: win32 cover everyone_writable_database: Path, tmp_path: Path, mocker: MockerFixture )
tests/sqlite/test_connection_windows.py:54
Function
test_windows_read_write_rejects_changed_database_link
(tmp_path: Path, mocker: MockerFixture)
tests/sqlite/test_connection_windows.py:40
Function
test_windows_release_does_not_wait_for_an_oplock_taken_after_the_close
( tmp_path: Path, hold_oplock: Callable[[Path], Callable[[], None]], mocker: MockerFixture )
tests/filesystem/windows/test_oplocks.py:54
Function
test_windows_release_keeps_lock_held_when_unlock_fails
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_native_release.py:68
Function
test_windows_release_spares_a_replacement
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_release.py:103
Function
test_windows_reparse_point_lock_file_rejected
(tmp_path: Path)
tests/native/test_windows.py:22
Function
test_windows_shared_directory_ignores_a_journal_beside_the_database
( # pragma: win32 cover everyone_writable_database: Path, tmp_path: Path )
tests/sqlite/test_connection_side_files.py:89
Function
test_windows_shared_directory_ignores_an_undeletable_file_at_the_wal_name
( # pragma: win32 cover everyone_writable_database: Path, )
tests/sqlite/test_connection_side_files.py:105
Function
test_windows_shared_directory_leaves_only_the_database_after_release
( # pragma: win32 cover everyone_writable_database: Path, )
tests/sqlite/test_connection_windows.py:210
Function
test_windows_shared_directory_refuses_a_link_directory_others_can_write
( # pragma: win32 cover everyone_writable_database: Path, mocker: MockerFixture )
tests/sqlite/test_connection_windows.py:237
Function
test_windows_shared_directory_release_keeps_a_directory_renamed_onto_the_link
( # pragma: win32 cover everyone_writable_database: Path, tmp_path: Path, mocker: MockerFixture )
tests/sqlite/test_connection_windows.py:249
Function
test_windows_shared_directory_removes_the_link_after_a_failure
( # pragma: win32 cover everyone_writable_database: Path, mocker: MockerFixture, boundary: str )
tests/sqlite/test_connection_windows.py:225
Function
test_windows_shared_directory_sweep_keeps_a_file_that_is_not_a_link_to_the_database
( # pragma: win32 cover everyone_writable_database: Path, )
tests/sqlite/test_connection_windows.py:294
Function
test_windows_shared_directory_sweep_keeps_the_link_of_a_live_holder
( # pragma: win32 cover everyone_writable_database: Path, windows_link_holder: subprocess.Popen[str] )
tests/sqlite/test_connection_windows.py:308
Function
test_windows_shared_directory_sweeps_the_link_of_a_dead_holder
( # pragma: win32 cover everyone_writable_database: Path, )
tests/sqlite/test_connection_windows.py:274
Function
test_windows_stale_lock_broken_when_pid_recycled
(lock_path: Path)
tests/soft/exclusive/test_recovery_filesystem.py:130
Function
test_windows_stale_lock_held_on_access_denied
( # pragma: win32 cover lock_path: Path, mocker: MockerFixture )
tests/soft/exclusive/test_recovery_filesystem.py:121
Function
test_windows_stale_lock_uses_captured_process_error
( # pragma: win32 cover lock_path: Path, mocker: MockerFixture )
tests/soft/exclusive/test_recovery_filesystem.py:99
Function
test_windows_transient_denial_is_retried_within_grace
(tmp_path: Path, mocker: MockerFixture)
tests/filesystem/windows/test_handles.py:38
Function
test_windows_unlink_without_oplock_wait_deletes_a_symlink_not_its_target
(tmp_path: Path)
tests/filesystem/windows/test_oplocks.py:110
Function
test_windows_unlink_without_oplock_wait_leaves_an_oplocked_file
( tmp_path: Path, hold_oplock: Callable[[Path], Callable[[], None]] )
tests/filesystem/windows/test_oplocks.py:96
Function
test_windows_unlink_without_oplock_wait_reports_a_file_held_without_delete_sharing
(tmp_path: Path)
tests/filesystem/windows/test_oplocks.py:82
Function
test_windows_unlink_without_oplock_wait_reports_a_missing_file
(tmp_path: Path, name: str)
tests/filesystem/windows/test_oplocks.py:73
Function
test_winner_leaves_existing_file_as_found
(tmp_path: Path, mode: int)
tests/native/test_unix_modes.py:66
Function
test_worker_can_enter_a_peer_only_after_withdrawal
(lock_path: Path, caplog: pytest.LogCaptureFixture)
tests/soft/strict/test_release_interruption.py:94
Function
test_worker_cannot_wait_for_its_own_receipt
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_observers.py:237
Function
test_worker_reentrant_release_preserves_claim_until_withdrawal
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_observers.py:33
Function
test_worker_start_interruption_keeps_claim
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_worker.py:183
Function
test_worker_withdraws_after_a_reentrant_start_callback
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_observers.py:144
Function
test_writability_allows_creation_after_marker_disappears
(readonly_marker: Path, mocker: MockerFixture)
tests/filesystem/test_files.py:106
Function
test_writability_check_does_not_follow_symlink_to_dir
(tmp_path: Path)
tests/filesystem/test_files.py:36
Function
test_writability_check_does_not_follow_symlink_to_readonly
(tmp_path: Path)
tests/filesystem/test_files.py:45
Function
test_writability_check_ignores_symlink_swapped_in_after_lstat
(readonly_marker: Path, mocker: MockerFixture)
tests/filesystem/test_files.py:119
Function
test_writability_check_rejects_a_directory
(tmp_path: Path, mode: int, mtime: int)
tests/filesystem/test_files.py:62
Function
test_writability_check_rejects_a_readonly_file
(tmp_path: Path, mtime: int)
tests/filesystem/test_files.py:75
Function
test_writability_rejects_denied_marker
(readonly_marker: Path, mocker: MockerFixture)
tests/filesystem/test_files.py:132
Function
test_writability_uses_open_credentials
( readonly_marker: Path, mocker: MockerFixture, mode: int, *, effective_ids: bool )
tests/filesystem/test_files.py:90
Function
test_writable_target_requires_exchange_when_its_flock_differs
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture, *, exchange: bool )
tests/native/test_unix_probe.py:256
Function
test_write_failure_rolls_back_acquire
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_rollback.py:32
Function
test_write_head_cleans_up_a_failed_update
(tmp_path: Path, mocker: MockerFixture, operation: str)
tests/soft/read_write/test_storage.py:168
Function
test_write_head_keeps_a_rename_that_landed_before_an_error
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:176
Function
test_write_head_replaces_the_previous_record
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:153
Function
test_write_lock_context_manager_overrides_defaults
(lock_file: str)
tests/sqlite/test_lock_settings.py:144
Function
test_write_lock_custom_blocking
(lock_file: str)
tests/sqlite/test_transactions.py:143
Function
test_write_lock_drop_from_different_thread_needs_an_explicit_override
( lock_file: str, lock: SoftReadWriteLock, drop: Callable[[SoftReadWriteLock], None] )
tests/soft/read_write/test_hold.py:91
Function
test_write_lock_drop_from_different_thread_needs_an_explicit_override
( lock_file: str, drop: Callable[[ReadWriteLock], None] )
tests/sqlite/test_transactions_threads.py:113
Function
test_write_lock_excludes_contender
(lock_file: str, contender_mode: Literal["read", "write"])
tests/soft/read_write/test_lock_contention.py:77
Function
test_write_lock_excludes_other_write_locks
(lock_file: str)
tests/sqlite/test_lock_contention.py:56
Function
test_write_lock_is_thread_pinned
(lock: SoftReadWriteLock)
tests/soft/read_write/test_hold.py:57
Function
test_write_lock_reentrant_from_different_thread_prohibited
(lock_file: str)
tests/sqlite/test_transactions.py:172
Function
test_write_lock_release_from_different_thread_prohibited
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_hold.py:75
Function
test_write_lock_release_from_different_thread_prohibited
(lock_file: str)
tests/sqlite/test_transactions_threads.py:23
Function
test_write_lock_with_mapped_overflow_uid
(sticky_dir_with_mapped_owner: Path)
tests/soft/read_write/test_lock_storage.py:133
Function
test_write_non_starvation
(lock_file: str)
tests/sqlite/test_lock_contention.py:136
Function
test_write_release_lands_on_another_executor_thread
(lock_file: str)
tests/sqlite/test_async_executor.py:89
Function
test_write_retried_after_its_begin_waited_is_acquired
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_async_release_cancellation.py:218
Function
test_writer_admission_after_the_last_reader_leaves_is_a_commit
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_participant.py:271
Function
test_writer_drains_existing_readers
(lock_file: str)
tests/soft/read_write/test_lock_contention.py:94
Function
test_writer_evicted_while_draining_queues_behind_its_evictor
( lock_file: str, monkeypatch: pytest.MonkeyPatch )
tests/soft/read_write/test_lock_contention.py:242
Function
test_writer_preference_blocks_new_readers
(lock_file: str)
tests/soft/read_write/test_lock_contention.py:112
Function
test_writer_refuses_a_read_only_connection
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_connection.py:207
Function
test_writer_timeout_commits_itself_out
(lock_file: str)
tests/soft/read_write/test_lock_contention.py:330
Function
test_writer_timeout_releases_pending_lock
(lock_file: str)
tests/sqlite/test_lock_contention.py:261
Function
test_wrong_platform
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/native/test_unix_fallback.py:385
Function
test_zero_offset_cache_requires_the_same_pinned_namespace
( create: Callable[[Path], None], *, cached: bool, tmp_path: Path, mocker: MockerFixture )
tests/identity/test_process.py:152
Function
test_zero_write_rolls_back_acquire
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_rollback.py:106
Function
third_contender_polls
(path: str | os.PathLike[str], *args: int, **kwargs: int | None)
tests/filesystem/test_exchange.py:168
Function
thread_work
()
tests/core/test_threading.py:49
Function
tick
()
tests/soft/strict/test_scan.py:69
Function
tick
(seconds: float)
tests/soft/strict/test_sentinel.py:227
← previous
next →
3,401–3,500 of 3,548, ranked by callers