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_lease_heartbeat_keeps_a_live_claim_past_its_duration
(marker: Path)
tests/soft/test_lease_heartbeat.py:36
Function
test_lease_heartbeat_keeps_its_old_pickle_name
()
tests/test_pickle_compatibility.py:21
Function
test_lease_heartbeat_reports_an_owner_changed_that_persists
(marker: Path)
tests/soft/test_lease_heartbeat.py:317
Function
test_lease_heartbeat_survives_directory_rename
( working_directories: tuple[Path, Path], )
tests/soft/test_lease_heartbeat.py:65
Function
test_lease_heartbeat_tolerates_one_refresh_under_a_peers_exchange
( # pragma: win32 no cover marker: Path, mocker: MockerFixture )
tests/soft/test_lease_heartbeat.py:286
Function
test_lease_heartbeat_uses_acquisition_directory
( working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/soft/test_lease_heartbeat.py:46
Function
test_lease_held_at_interpreter_exit_releases_its_marker
(marker: Path, script: str)
tests/soft/test_lease_finalization.py:99
Function
test_lease_holds_an_uncompromised_claim
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_release.py:234
Function
test_lease_keeps_a_claim_refreshed_by_a_host_whose_clock_lags
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_settings.py:147
Function
test_lease_keeps_its_claim_when_another_thread_fails_to_acquire
(marker: Path)
tests/soft/test_lease.py:201
Function
test_lease_never_ages_out_an_unknown_contract
(tmp_path: Path)
tests/soft/exclusive/test_marker.py:62
Function
test_lease_on_a_read_only_lock_file_is_contention
(leased_lock_path: Path)
tests/native/test_unix.py:289
Function
test_lease_on_lock_file_does_not_outlast_deadline
( leased_lock_path: Path, timeout: float, *, blocking: bool )
tests/native/test_unix.py:278
Function
test_lease_peer_takes_an_expired_claim
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_heartbeat.py:84
Function
test_lease_publishes_its_claim
(marker: Path)
tests/soft/test_lease.py:39
Function
test_lease_reclaims_a_dead_same_host_holder
(marker: Path, contract: str)
tests/soft/test_lease_heartbeat.py:119
Function
test_lease_records_a_compromise_without_a_callback_deterministically
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_release.py:308
Function
test_lease_records_a_float_subclass_duration_as_a_plain_float
(marker: Path)
tests/soft/test_lease.py:181
Function
test_lease_records_the_compromise_without_a_callback
(marker: Path)
tests/soft/test_lease_heartbeat.py:344
Function
test_lease_refuses_to_nest_into_a_lost_claim
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease.py:114
Function
test_lease_rejects_a_peer_configured_with_another_duration
(marker: Path)
tests/soft/test_lease.py:295
Function
test_lease_rejects_incoherent_settings
( marker: Path, lease_duration: float, heartbeat_interval: float | None, error: type[Exception
tests/soft/test_lease_settings.py:69
Function
test_lease_release_does_not_report_a_provisional_break
(marker: Path)
tests/soft/test_lease_release.py:145
Function
test_lease_release_does_not_report_a_renamed_directory
(marker: Path)
tests/soft/test_lease_release.py:181
Function
test_lease_release_does_not_report_a_restored_directory
( # pragma: win32 no cover marker: Path, mocker: MockerFixture )
tests/soft/test_lease_release.py:193
Function
test_lease_release_does_not_report_a_rolled_back_break
( # pragma: win32 no cover marker: Path, mocker: MockerFixture )
tests/soft/test_lease_release.py:157
Function
test_lease_release_does_not_report_an_unreadable_marker
( marker: Path, mocker: MockerFixture )
tests/soft/test_lease_release.py:215
Function
test_lease_release_from_the_callback_does_not_join_itself
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_release.py:320
Function
test_lease_release_from_the_callback_needs_a_shared_context
(marker: Path)
tests/soft/test_lease_release.py:286
Function
test_lease_release_records_a_missing_marker_before_the_next_heartbeat
( marker: Path, )
tests/soft/test_lease_release.py:30
Function
test_lease_release_records_a_missing_marker_with_an_extra_link
( # pragma: needs unlink-open-file marker: Path, )
tests/soft/test_lease_release.py:67
Function
test_lease_release_records_a_replacement_before_the_next_heartbeat
( # pragma: needs unlink-open-file marker: Path, )
tests/soft/test_lease_release.py:46
Function
test_lease_release_records_a_replacement_with_an_unrelated_break_name
( # pragma: needs unlink-open-file marker: Path, )
tests/soft/test_lease_release.py:84
Function
test_lease_release_records_loss_after_the_first_heartbeat_miss
( # pragma: needs unlink-open-file marker: Path, mocker: MockerFixture )
tests/soft/test_lease_release.py:107
Function
test_lease_release_stops_a_heartbeat_recorded_before_its_thread_starts
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease.py:280
Function
test_lease_reports_compromise_when_a_peer_takes_over
(marker: Path)
tests/soft/test_lease_heartbeat.py:220
Function
test_lease_reports_compromise_when_a_refresh_fails
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_heartbeat.py:235
Function
test_lease_reports_compromise_when_the_marker_vanishes
(marker: Path)
tests/soft/test_lease_heartbeat.py:127
Function
test_lease_reports_marker_missing_when_a_refresh_cannot_stat_it
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_heartbeat_error.py:21
Function
test_lease_reports_missing_marker_with_another_hard_link
(marker: Path)
tests/soft/test_lease_heartbeat.py:141
Function
test_lease_reports_one_compromise_per_claim
(marker: Path)
tests/soft/test_lease_heartbeat.py:333
Function
test_lease_reports_owner_changed_when_the_marker_identity_shifts
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_heartbeat_error.py:110
Function
test_lease_reports_refresh_failed_when_a_missing_marker_cannot_be_inspected
( marker: Path, mocker: MockerFixture )
tests/soft/test_lease_heartbeat_error.py:52
Function
test_lease_reports_refresh_failure_after_junction_removed
( tmp_path: Path, create_junction: Callable[[Path, Path], None], mocker: MockerFixture, parent_errno: int
tests/soft/test_lease_heartbeat.py:186
Function
test_lease_retries_when_missing_markers_parent_cannot_be_read
(tmp_path: Path, mocker: MockerFixture)
tests/soft/test_lease_heartbeat.py:156
Function
test_lease_rides_out_a_marker_missing_for_one_refresh
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_heartbeat_error.py:89
Function
test_lease_self_heals_a_malformed_marker
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_heartbeat.py:100
Function
test_lease_shared_across_threads_has_one_claim
(marker: Path)
tests/soft/test_lease.py:223
Function
test_lease_singleton_accepts_the_same_decimal_heartbeat_again
(marker: Path)
tests/soft/test_lease.py:192
Function
test_lease_singleton_rejects_reuse_with_another_setting
( marker: Path, lease_type: type[SoftFileLease], lease_settings: LeaseSettings, setting: Liter
tests/soft/test_lease.py:327
Function
test_lease_singleton_resolves_an_omitted_heartbeat_before_comparing
( marker: Path, lease_type: type[SoftFileLease] )
tests/soft/test_lease.py:316
Function
test_lease_singleton_reuses_the_instance_for_the_same_settings
( marker: Path, lease_type: type[SoftFileLease], lease_settings: LeaseSettings )
tests/soft/test_lease.py:308
Function
test_lease_supersedes_a_live_holder_once_its_claim_ages_out
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease_settings.py:94
Function
test_lease_takes_over_a_dead_owners_marker_with_its_own_lease_record
( # pragma: win32 no cover tmp_path: Path, )
tests/soft/test_lease_finalization.py:158
Function
test_lease_token_names_no_claim_after_a_contended_acquire
(marker: Path)
tests/soft/test_lease.py:64
Function
test_lease_token_names_no_claim_after_an_acquire_that_raises
(tmp_path: Path)
tests/soft/test_lease.py:103
Function
test_lease_token_names_the_claim_only_while_held
(marker: Path)
tests/soft/test_lease.py:54
Function
test_lease_tolerates_a_transient_refresh_error
( marker: Path, mocker: MockerFixture, target: str, real: _RefreshCall )
tests/soft/test_lease_heartbeat.py:256
Function
test_lease_treats_an_unreadable_record_as_contention
(tmp_path: Path)
tests/soft/exclusive/test_marker.py:51
Function
test_leased_lock_file_it_cannot_write_is_contention_where_flock_works
( tmp_path: Path, )
tests/native/test_unix_open.py:70
Function
test_leave_drops_the_record_when_the_log_cannot_be_read
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_participant.py:310
Function
test_leave_retries_a_commit_a_peer_won
(lock_file: str, files: OsFiles, root: str, mocker: MockerFixture)
tests/soft/read_write/test_participant.py:37
Function
test_leave_stops_retrying_after_stale_threshold
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_participant.py:63
Function
test_leave_without_entering_only_drops_the_record
(lock_file: str, files: OsFiles)
tests/soft/read_write/test_participant.py:27
Function
test_ledger_counts_no_time_past_the_moment_the_observer_asked
()
tests/soft/read_write/test_sweep.py:58
Function
test_ledger_keeps_large_observations_with_bounded_memory
()
tests/soft/read_write/test_sweep.py:43
Function
test_ledger_measures_how_long_a_value_stays_unchanged
()
tests/soft/read_write/test_sweep.py:28
Function
test_ledger_retain_forgets_everything_else
()
tests/soft/read_write/test_sweep.py:66
Function
test_legacy_client_cannot_cross_permanent_sentinel
(tmp_path: Path)
tests/soft/strict/test_lock.py:136
Function
test_legacy_client_never_reclaims_permanent_sentinel
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_lock.py:147
Function
test_legacy_interpreter_identity
(mocker: MockerFixture, current: int)
tests/sqlite/test_fork_registry.py:41
Function
test_lifetime_accepts_supported_value
( lock_type: type[SoftFileLock | AsyncSoftFileLock], value: float | None, tmp_path: Path, )
tests/core/test_lifetime.py:98
Function
test_lifetime_default_none
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:131
Function
test_lifetime_property_getter_setter
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:120
Function
test_lifetime_rejects_invalid_value
( lock_type: type[FileLock | AsyncFileLock], entry_point: Literal["constructor", "setter"], bad_va
tests/core/test_lifetime.py:55
Function
test_lifetime_setter_accepts_zero
(value: float, tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:168
Function
test_lifetime_setter_rejects_bool
(bad_value: bool, tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:161
Function
test_lifetime_setter_rejects_negative_number
(bad_value: float, tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:136
Function
test_lifetime_setter_rejects_non_numeric
( bad_value: str | bytes | list[int] | dict[int, int] | complex, tmp_path: Path )
tests/soft/exclusive/test_recovery_expiry.py:152
Function
test_lifetime_singleton_match
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:183
Function
test_lifetime_singleton_mismatch
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:174
Function
test_lifetime_singleton_rejection_preserves_instance
(bad_value: float, tmp_path: Path)
tests/core/test_lifetime.py:118
Function
test_link_from_a_missing_source_raises
(tmp_path: Path)
tests/soft/read_write/test_storage.py:135
Function
test_link_raises_a_fault_that_did_not_land
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:140
Function
test_link_reports_an_unsupported_filesystem
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:123
Function
test_link_stays_in_the_open_generation_directory
( # pragma: needs link-dir-fd tmp_path: Path, mocker: MockerFixture )
tests/soft/read_write/test_storage.py:100
Function
test_link_trusts_identity_over_an_error
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:81
Function
test_listdir_stops_one_name_past_the_limit
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:290
Function
test_live_heartbeat_keeps_lock_alive_past_stale_threshold
(lock_file: str)
tests/soft/read_write/test_heartbeat.py:366
Function
test_live_lock_refuses_a_tree_another_account_planted_after_a_recovery
( # pragma: needs foreign-sticky-tmp lock_path_in_shared_tmp: Path, mocker: MockerFixture )
tests/soft/read_write/test_lock_storage.py:176
Function
test_live_process_with_matching_start_token_retained
(lock_path: Path)
tests/soft/exclusive/test_recovery.py:145
Function
test_live_process_without_start_token_falls_back_to_pid
(lock_path: Path)
tests/soft/exclusive/test_recovery.py:151
Function
test_live_tree_rechecks_owner_with_same_inode
( lock_path_in_shared_tmp: Path, mocker: MockerFixture )
tests/soft/read_write/test_storage.py:370
Function
test_live_tree_refuses_writable_mode_change
( lock_path_in_shared_tmp: Path, mocker: MockerFixture, level: str, *, name_only: bool )
tests/soft/read_write/test_storage.py:356
Function
test_lock_a_daemon_thread_holds_at_exit_stays_held
( lock_type: type[BaseFileLock], tmp_path: Path, *, thread_local: bool )
tests/core/test_shutdown.py:78
Function
test_lock_acquired_after_release_keeps_path
(tmp_path: Path)
tests/native/test_file_identity.py:72
Function
test_lock_can_be_non_thread_local
( tmp_path: Path, lock_type: type[BaseFileLock], )
tests/core/test_threading.py:175
Function
test_lock_context_manager
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_async.py:79
Function
test_lock_context_manager
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_transactions.py:116
Function
test_lock_descriptor_blocking_retries_until_free
( tmp_path: Path, mocker: MockerFixture, poll_interval: float )
tests/native/test_descriptor.py:182
← previous
next →
2,401–2,500 of 3,548, ranked by callers