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_stale_marker_is_retained_without_exchange
(stale_lock: Path)
tests/filesystem/test_exchange.py:64
Function
test_stale_release_spares_a_successor
(lock_path: Path)
tests/soft/exclusive/test_publication_release.py:91
Function
test_stale_take_over_interrupted_before_the_check_puts_the_marker_back
( # pragma: win32 no cover stale_lock: Path, mocker: MockerFixture )
tests/filesystem/test_exchange_recovery.py:305
Function
test_stale_take_over_keeps_the_lock_when_a_rename_replaces_its_marker
( # pragma: win32 no cover stale_lock: Path, mocker: MockerFixture, lifetime: float | None )
tests/filesystem/test_exchange_recovery.py:136
Function
test_sticky_bit_fallback_handles_concurrent_unlink
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix.py:203
Function
test_stray_files_in_the_protocol_directories_are_ignored
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_lock_storage.py:217
Function
test_strict_activation_rejects_old_soft_client
( tmp_path: Path, old_client_env: dict[str, str] )
tests/soft/strict/test_compatibility.py:103
Function
test_strict_lock_reports_unsupported_without_os_link
(tmp_path: Path)
tests/test_public_api.py:27
Function
test_strict_protocol_directories_follow_mode
( # pragma: win32 no cover # pragma: needs hard-link mode: int, expected: str, tmp_path: Path )
tests/core/test_settings.py:122
Function
test_strict_soft_abandoned_claim_probe_is_reclaimed
(tmp_path: Path)
tests/soft/strict/test_claims.py:243
Function
test_strict_soft_accepts_maximum_pid
(tmp_path: Path)
tests/soft/strict/test_claims.py:59
Function
test_strict_soft_accepts_nfs_unlinked_open_claim
(tmp_path: Path)
tests/soft/strict/test_directories_ownership.py:300
Function
test_strict_soft_acquire_finishes_an_exited_threads_pending_doorway
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_publication_withdrawal_pending.py:229
Function
test_strict_soft_acquire_leaves_a_live_threads_pending_doorway_alone
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_publication_withdrawal_pending.py:213
Function
test_strict_soft_acquire_publishes_owner_claim
(tmp_path: Path)
tests/soft/strict/test_lock.py:42
Function
test_strict_soft_acquires_without_dir_fd
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_rollback.py:218
Function
test_strict_soft_aged_sentinel_private_record_cleanup
(tmp_path: Path)
tests/soft/strict/test_lock.py:436
Function
test_strict_soft_answers_a_sentinel_break
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_sentinel.py:198
Function
test_strict_soft_claim_directory_growing_after_publication_withdraws
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_scan_limit.py:110
Function
test_strict_soft_claim_directory_read_error_fails_closed
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_claims.py:26
Function
test_strict_soft_claim_directory_reserves_space_before_publication
( initialized_lock_path: Path, mocker: MockerFixture, extra: int )
tests/soft/strict/test_scan_limit.py:92
Function
test_strict_soft_claim_flood_after_preflight
( initialized_lock_path: Path, mocker: MockerFixture, last_name: str, error: type[Exception] )
tests/soft/strict/test_scan_limit.py:48
Function
test_strict_soft_claim_flood_counts_as_contention
(initialized_lock_path: Path)
tests/soft/strict/test_scan_limit.py:29
Function
test_strict_soft_claim_inspection_lists_past_scan_limit
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_scan_limit.py:72
Function
test_strict_soft_claim_it_may_not_link_counts_as_published
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_claims.py:187
Function
test_strict_soft_claim_pending_deletion_is_skipped
(tmp_path: Path)
tests/soft/strict/test_scan.py:147
Function
test_strict_soft_claim_probe_cleanup_error_fails_closed
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_claims.py:208
Function
test_strict_soft_claim_probe_error_fails_closed
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_claims.py:199
Function
test_strict_soft_claim_probe_removed_by_peer
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_claims.py:217
Function
test_strict_soft_claim_probe_requires_hard_links
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_claims.py:234
Function
test_strict_soft_claim_publication_oplock_keeps_deadline
( # pragma: win32 cover tmp_path: Path, hold_oplock: OplockHolder, mocker: MockerFixture, phase: str, tim
tests/soft/strict/test_windows_oplock.py:47
Function
test_strict_soft_claim_read_retries_after_a_slow_denied_attempt
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_scan.py:234
Function
test_strict_soft_claim_removed_between_inspection_and_open_is_skipped
( tmp_path: Path, mocker: MockerFixture )
tests/soft/strict/test_scan.py:168
Function
test_strict_soft_claim_replaced_while_opening_fails_closed
( tmp_path: Path, mocker: MockerFixture, replacement: str, message: str )
tests/soft/strict/test_claims.py:123
Function
test_strict_soft_claim_scan_does_not_chmod_past_limit
( # pragma: win32 no cover initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_scan_limit.py:149
Function
test_strict_soft_claim_scan_leaves_private_records_on_overflow
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_scan_limit.py:165
Function
test_strict_soft_claim_scan_recovers_private_records_in_one_attempt
( # pragma: win32 no cover initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_scan_limit.py:182
Function
test_strict_soft_claim_scan_reports_private_cleanup_error
( # pragma: win32 no cover initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_scan_limit.py:198
Function
test_strict_soft_claim_scan_skips_private_probes
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_scan_limit.py:81
Function
test_strict_soft_claims_empty_before_first_acquire
(tmp_path: Path)
tests/soft/strict/test_publication_collision.py:22
Function
test_strict_soft_claims_inspection_creates_no_file
( abandoned_record: tuple[Path, Path], mocker: MockerFixture )
tests/soft/strict/test_scan_reclaim.py:140
Function
test_strict_soft_claims_recheck_after_a_denied_claim_creates_no_file
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_scan.py:213
Function
test_strict_soft_claims_refuses_unknown_public_name
(tmp_path: Path)
tests/soft/strict/test_directories_ownership.py:332
Function
test_strict_soft_claims_removed_one_by_one_share_one_read_grace
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_scan.py:112
Function
test_strict_soft_constructor_rejects_lifetime
( tmp_path: Path, lock_type: type[StrictSoftFileLock | AsyncStrictSoftFileLock], )
tests/soft/strict/test_lock.py:178
Function
test_strict_soft_contender_times_out
(tmp_path: Path)
tests/soft/strict/test_lock.py:116
Function
test_strict_soft_coordination_directory_replaced_in_a_writable_parent_splits_holders
(tmp_path: Path)
tests/soft/strict/test_directories_ownership.py:406
Function
test_strict_soft_coordination_directory_swapped_for_a_junction_leaves_target_alone
( tmp_path: Path, mocker: MockerFixture, create_junction: Callable[[Path, Path], None] )
tests/soft/strict/test_windows_directories.py:48
Function
test_strict_soft_coordination_directory_swapped_for_symlink_leaves_target_alone
( tmp_path: Path, mocker: MockerFixture, function: str, suffix: str, occurrence: int, match: str )
tests/soft/strict/test_directories_ownership.py:60
Function
test_strict_soft_damaged_lock_path_names_occupant
( tmp_path: Path, make_occupant: Callable[[Path], object], found: str )
tests/soft/strict/test_sentinel.py:136
Function
test_strict_soft_denied_claim_removed_during_grace_is_skipped
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_scan.py:64
Function
test_strict_soft_denied_claim_still_listed_after_grace_fails_closed
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_scan.py:86
Function
test_strict_soft_directory_inspection_error_fails_closed
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_directories_ownership.py:35
Function
test_strict_soft_directory_mode_failure_fails_closed
( # pragma: win32 no cover tmp_path: Path, mocker: MockerFixture )
tests/soft/strict/test_scan.py:103
Function
test_strict_soft_discard_sentinel_close_failure
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_close.py:241
Function
test_strict_soft_doorway_claim_unlink_failure_stays_pending
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_withdrawal_pending.py:60
Function
test_strict_soft_doorway_preserves_every_claim_cleanup_error
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_withdrawal_errors.py:116
Function
test_strict_soft_dropped_hold_with_stuck_claims_closes_its_descriptor
( # pragma: needs collected-finalization initialized_lock_path: Path, mocker: MockerFixture, thread_local
tests/soft/strict/test_publication_withdrawal_pending.py:200
Function
test_strict_soft_dropped_instance_removes_pending_claims
( # pragma: needs collected-finalization initialized_lock_path: Path, mocker: MockerFixture, leav
tests/soft/strict/test_publication_withdrawal_pending.py:144
Function
test_strict_soft_eight_process_contention_has_no_overlap
(tmp_path: Path)
tests/soft/strict/test_publication.py:310
Function
test_strict_soft_exited_soft_lock_owner_raises_without_waiting
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_sentinel.py:269
Function
test_strict_soft_failed_clock_probe_does_not_fail_the_scan
( abandoned_record: tuple[Path, Path], mocker: MockerFixture, fail_probe: Callable[[MockerFixture]
tests/soft/strict/test_scan_reclaim.py:180
Function
test_strict_soft_failed_doorway_cleanup_keeps_no_descriptor
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_publication_withdrawal_pending.py:160
Function
test_strict_soft_file_lock_reads_back_its_own_claim
(tmp_path: Path)
tests/identity/test_host.py:40
Function
test_strict_soft_final_symlink_fails_closed_without_touching_target
(tmp_path: Path)
tests/soft/strict/test_directories.py:160
Function
test_strict_soft_first_scan_names_overfull_directory
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_scan_limit.py:130
Function
test_strict_soft_force_break_accepts_newer_version_claim
(tmp_path: Path)
tests/soft/strict/test_lock_force_break.py:56
Function
test_strict_soft_force_break_directory_close_failure
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_close.py:210
Function
test_strict_soft_force_break_during_doorway_backs_off
( tmp_path: Path, mocker: MockerFixture, scan_to_empty: int )
tests/soft/strict/test_publication_races.py:84
Function
test_strict_soft_force_break_held_during_doorway_backs_off
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_races.py:111
Function
test_strict_soft_force_break_names_guarantee_loss
(tmp_path: Path)
tests/soft/strict/test_lock_force_break.py:32
Function
test_strict_soft_force_break_rejects_non_basename
(tmp_path: Path, claim_name: str)
tests/soft/strict/test_lock_force_break.py:27
Function
test_strict_soft_force_break_requires_exact_case
(tmp_path: Path)
tests/soft/strict/test_lock_force_break.py:45
Function
test_strict_soft_force_break_retries_a_transient_unlink_denial
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_publication_rollback.py:295
Function
test_strict_soft_hard_link_failure_names_filesystem_contract
( tmp_path: Path, mocker: MockerFixture, error: OSError | NotImplementedError )
tests/soft/strict/test_lock.py:310
Function
test_strict_soft_hard_link_unsupported_errnos
( monkeypatch: pytest.MonkeyPatch, defined: dict[str, int], expected: set[int] )
tests/soft/strict/test_lock.py:327
Function
test_strict_soft_held_collision_does_not_delete_foreign_claim
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_collision.py:80
Function
test_strict_soft_held_directory_close_failure_removes_both_claims
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_close.py:108
Function
test_strict_soft_held_link_and_directory_close_failure
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_rollback.py:234
Function
test_strict_soft_held_publication_failure_rolls_back_intent
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_collision.py:48
Function
test_strict_soft_ignores_malformed_private_record_name
(tmp_path: Path)
tests/soft/strict/test_scan.py:255
Function
test_strict_soft_intent_token_collision_does_not_claim_lock
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_collision.py:27
Function
test_strict_soft_invalid_claim_fails_closed
(tmp_path: Path, claim_name: str, content: bytes, reason: str)
tests/soft/strict/test_lock.py:226
Function
test_strict_soft_invalid_record_node_fails_closed
(tmp_path: Path, make_claim: Callable[[Path], object])
tests/soft/strict/test_claims.py:106
Function
test_strict_soft_io_error_claim_read_fails_closed
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_claims.py:277
Function
test_strict_soft_is_reentrant
(tmp_path: Path)
tests/soft/strict/test_lock.py:87
Function
test_strict_soft_keeps_the_claim_directory_in_place_while_it_scans
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_windows_directories.py:86
Function
test_strict_soft_lease_on_sentinel_keeps_deadline
(leased_sentinel: Path, timeout: float, *, blocking: bool)
tests/soft/strict/test_sentinel.py:260
Function
test_strict_soft_lets_only_the_owner_write_its_records
( # pragma: needs file-mode make_lock: Callable[[Path], StrictSoftFileLock], tmp_path: Path )
tests/soft/strict/test_lock.py:69
Function
test_strict_soft_link_and_directory_close_failures_preserve_both
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication_close.py:72
Function
test_strict_soft_link_follow_probe_preserves_runtime_support_on_environment_error
( mocker: MockerFixture, target: str, error: OSError )
tests/soft/strict/test_publication_links.py:42
Function
test_strict_soft_link_follow_probe_reports_unhonored
(mocker: MockerFixture, error: Exception)
tests/soft/strict/test_publication_links.py:26
Function
test_strict_soft_live_claim_survives_server_probe
(tmp_path: Path)
tests/soft/strict/test_claims.py:177
Function
test_strict_soft_live_soft_lock_owner_blocks
(tmp_path: Path, legacy: type[SoftFileLock])
tests/soft/strict/test_sentinel.py:288
Function
test_strict_soft_lock_path_occupant_escapes_a_hostname_outside_the_grammar
(tmp_path: Path)
tests/soft/strict/test_sentinel.py:300
Function
test_strict_soft_lock_path_occupant_is_none_for_the_sentinel
(tmp_path: Path)
tests/soft/strict/test_sentinel.py:307
Function
test_strict_soft_lost_link_reply_counts_as_committed
( initialized_lock_path: Path, mocker: MockerFixture, state: str )
tests/soft/strict/test_publication_races.py:29
Function
test_strict_soft_lost_link_reply_survives_a_peer_reaping_the_source
( initialized_lock_path: Path, mocker: MockerFixture )
tests/soft/strict/test_publication_races.py:56
Function
test_strict_soft_lower_intent_delayed_until_higher_enters
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication.py:137
Function
test_strict_soft_lower_intent_delayed_until_higher_selects
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_publication.py:32
← previous
next →
3,101–3,200 of 3,548, ranked by callers