MCPcopy Create free account

hub / github.com/tox-dev/filelock / functions

Functions3,548 in github.com/tox-dev/filelock

Functiontest_expired_lock_becomes_acquirable
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:197
Functiontest_expired_lock_race_rename_fails
(tmp_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_recovery_expiry.py:78
Functiontest_expired_soft_lock_is_broken
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:25
Functiontest_explicit_mode_calls_fchmod
(tmp_path: Path, mocker: MockType)
tests/core/test_settings.py:84
Functiontest_explicit_mode_overrides_umask
(tmp_path: Path)
tests/core/test_settings.py:96
Functiontest_failed_acquire_cleanup_spares_a_replacement
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_rollback.py:166
Functiontest_failed_acquire_keeps_holder_registered
(tmp_path: Path, mode: Literal["finite", "nonblocking"])
tests/core/test_registry.py:68
Functiontest_failed_acquire_keeps_holder_registered
(tmp_path: Path, mode: Literal["finite", "nonblocking"])
tests/async_lock/test_owners.py:98
Functiontest_failed_acquire_retains_registration_after_failed_unlock
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_registry.py:262
Functiontest_failed_acquire_spares_a_file_that_replaced_its_placeholder
( # pragma: win32 no cover lock_path: Path, mocker: MockerFixture )
tests/soft/exclusive/test_publication_rollback.py:143
Functiontest_failed_acquire_spares_a_successor_on_the_freed_inode_number
( # pragma: win32 no cover lock_path: Path, mocker: MockerFixture, reuse_inode: Callable[[Path, os.stat_r
tests/soft/exclusive/test_publication_rollback.py:117
Functiontest_failed_async_construction_keeps_other_fork_resets
(tmp_path: Path)
tests/sqlite/test_async.py:32
Functiontest_failed_async_proxy_releases_provisional_hold
( tmp_path: Path, mocker: MockerFixture, *, run_in_executor: bool )
tests/async_lock/test_acquire.py:107
Functiontest_failed_nested_acquire_keeps_outer_registry_entry
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_registry.py:245
Functiontest_failed_proxy_releases_provisional_hold
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_on_acquired.py:275
Functiontest_failed_withdrawal_can_be_retried
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_worker.py:99
Functiontest_failed_withdrawal_keeps_deadlock_detection
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_interruption.py:52
Functiontest_fallback_break_lock_removes_recordless_marker
(tmp_path: Path)
tests/native/test_unix_fallback.py:255
Functiontest_fallback_closes_the_displaced_native_descriptor
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_fallback_marker.py:93
Functiontest_fallback_creates_marker_with_restricted_writes
( # pragma: needs fcntl tmp_path: Path, make_lock: Callable[[Path], UnixFileLock], umask: int )
tests/native/test_unix_fallback_marker.py:62
Functiontest_fallback_disabled_recursive_reraises
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_fallback.py:434
Functiontest_fallback_emits_warning
(tmp_path: Path)
tests/native/test_unix_fallback.py:92
Functiontest_fallback_keeps_peer_soft_marker
(tmp_path: Path)
tests/native/test_unix_fallback_marker.py:113
Functiontest_fallback_keeps_the_created_marker_without_unlinking
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_fallback_marker.py:127
Functiontest_fallback_keeps_unix_class_and_holds_soft_marker
(tmp_path: Path)
tests/native/test_unix_fallback.py:103
Functiontest_fallback_lifetime_expires_recordless_marker
(tmp_path: Path)
tests/native/test_unix_fallback.py:282
Functiontest_fallback_lstat_error_closes_pending_descriptor
( tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_fallback_marker.py:209
Functiontest_fallback_publishes_in_the_file_it_created
(tmp_path: Path)
tests/native/test_unix_fallback_marker.py:24
Functiontest_fallback_recovery_does_not_apply_after_chdir
( working_directories: tuple[Path, Path], unsupported_flock: MockType, mocker: MockerFixture,
tests/native/test_unix_fallback.py:296
Functiontest_fallback_recovery_remembers_earlier_path
( working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/native/test_unix_fallback.py:324
Functiontest_fallback_reentrant_locking
(tmp_path: Path)
tests/native/test_unix_fallback.py:352
Functiontest_fallback_release_unlinks_file
(tmp_path: Path)
tests/native/test_unix_fallback.py:147
Functiontest_fallback_reprobes_after_chdir
( working_directories: tuple[Path, Path], unsupported_flock: MockType, mocker: MockerFixture,
tests/native/test_unix_fallback.py:173
Functiontest_fallback_restricts_writable_marker_without_exchange
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_fallback_marker.py:78
Functiontest_fallback_retries_if_created_marker_disappears
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_fallback_marker.py:180
Functiontest_fallback_retries_if_peer_replaces_unwritten_marker
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/native/test_unix_fallback_marker.py:149
Functiontest_fallback_skips_flock_in_another_thread
( # pragma: needs fcntl tmp_path: Path, unsupported_flock: MockType )
tests/native/test_unix_fallback.py:192
Functiontest_fallback_subsequent_acquire_skips_flock
(tmp_path: Path, unsupported_flock: MockType)
tests/native/test_unix_fallback.py:159
Functiontest_fallback_timeout_describes_recordless_marker
(tmp_path: Path)
tests/native/test_unix_fallback.py:245
Functiontest_fallback_to_soft_default_switches_to_soft
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_fallback.py:421
Functiontest_fallback_to_soft_disabled_raises_enosys
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_fallback.py:409
Functiontest_fallback_to_soft_disabled_raises_enosys
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_backend_calls.py:97
Functiontest_fallback_to_soft_reprobes_after_chdir
( working_directories: tuple[Path, Path], mocker: MockerFixture, monkeypatch: pytest.MonkeyPatch )
tests/async_lock/test_backend_calls.py:109
Functiontest_fallback_treats_a_leased_marker_it_cannot_write_as_contention
(tmp_path: Path)
tests/native/test_unix_open.py:83
Functiontest_fallback_waits_on_a_peer_marker_it_cannot_write
(tmp_path: Path)
tests/native/test_unix_open.py:21
Functiontest_fallback_write_error_leaves_marker
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_fallback_marker.py:39
Functiontest_fallback_writes_pid_and_hostname
(tmp_path: Path, expected_lines: list[str])
tests/native/test_unix_fallback.py:136
Functiontest_fchmod_enosys_is_not_a_missing_flock
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_probe.py:173
Functiontest_fencing_generations_are_strictly_increasing_across_grants
()
tests/soft/read_write/test_participant_model.py:363
Functiontest_fifo_lock_file_does_not_block
(lock_path: Path)
tests/soft/exclusive/test_recovery_filesystem.py:48
Functiontest_fifo_lock_file_with_attached_writer_self_heals
(lock_path: Path)
tests/soft/exclusive/test_recovery_filesystem.py:58
Functiontest_file_lock_positional_argument
(tmp_path: Path)
tests/core/test_lock.py:290
Functiontest_file_permissions_capability
(*, expected: bool)
tests/filesystem/test_files.py:159
Functiontest_file_permissions_probe_propagates_io_errors
(error: OSError)
tests/filesystem/test_files.py:171
Functiontest_filelock_first_blocks_descriptor_until_released
(tmp_path: Path)
tests/native/test_descriptor.py:111
Functiontest_filenotfound_on_fuse_nfs_retries
Retry recovers from the FUSE/NFS os.open(O_CREAT) race that raises FileNotFoundError.
tests/native/test_unix.py:299
Functiontest_final_symlink_backend_refuses_to_lock
(tmp_path: Path)
tests/core/test_relative_paths.py:311
Functiontest_final_symlink_stays_a_distinct_key
(tmp_path: Path)
tests/core/test_singleton.py:317
Functiontest_finish_connection_chains_rollback_then_close_error
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_transactions_connection.py:70
Functiontest_finish_connection_skips_rollback_when_already_released
(lock_file: str)
tests/sqlite/test_transactions_connection.py:90
Functiontest_finite_timeout_gives_timeout_not_deadlock
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:38
Functiontest_finite_timeout_gives_timeout_not_deadlock
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:38
Functiontest_finite_timeout_transaction_lock
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_transactions.py:331
Functiontest_flock_not_implemented_unix
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_fallback.py:400
Functiontest_force_release_cleans_registry
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:232
Functiontest_force_release_clears_registry
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:247
Functiontest_force_release_drops_the_callers_whole_nest
(lock_file: str)
tests/sqlite/test_async_contention.py:88
Functiontest_force_release_in_exiting_hook_preserves_exit
(tmp_path: Path)
tests/core/test_on_acquired.py:227
Functiontest_force_release_keeps_hold_of_live_thread
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_shutdown.py:302
Functiontest_force_release_keeps_main_thread_atexit_hold
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_shutdown.py:103
Functiontest_force_release_keeps_main_thread_hold_during_threading_shutdown
( lock_type: type[BaseFileLock], tmp_path: Path )
tests/core/test_shutdown.py:137
Functiontest_force_release_observes_an_exited_owners_error
(lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_release_worker.py:121
Functiontest_force_release_on_exit_during_identity_publication
( lock_path: Path, monkeypatch: pytest.MonkeyPatch, *, thread_local: bool )
tests/soft/exclusive/test_publication_cleanup.py:172
Functiontest_forced_release_drops_acquisition_key_after_parent_retarget
(tmp_path: Path)
tests/core/test_registry.py:194
Functiontest_forced_release_drops_acquisition_key_after_parent_retarget
(tmp_path: Path)
tests/async_lock/test_paths.py:155
Functiontest_forced_release_drops_all_holds
(tmp_path: Path)
tests/native/test_native_release.py:34
Functiontest_foreign_host_holder_is_evicted_after_the_stale_threshold
(lock_file: str)
tests/soft/read_write/test_lock_recovery.py:74
Functiontest_foreign_owner_refuses_ambiguous_uid
( # pragma: win32 no cover # pragma: darwin no cover mocker: MockerFixture, overflowuid: str, expected:
tests/filesystem/test_ownership.py:33
Functiontest_foreign_owner_refuses_uid_when_overflowuid_is_unreadable
( # pragma: win32 no cover # pragma: darwin no cover mocker: MockerFixture, )
tests/filesystem/test_ownership.py:45
Functiontest_fork_child_exits_when_another_threads_transition_never_drains
( tmp_path: Path, mocker: MockerFixture )
tests/core/test_fork_ownership.py:338
Functiontest_fork_child_leaves_inherited_sqlite_connection_open
(tmp_path: Path, mocker: MockerFixture)
tests/sqlite/test_fork.py:62
Functiontest_fork_child_whose_callable_raises_exits_70
(capfd: pytest.CaptureFixture[str])
tests/core/test_fork_helpers.py:18
Functiontest_fork_child_whose_callable_returns_exits_70
()
tests/core/test_fork_helpers.py:30
Functiontest_fork_exec_from_another_thread_remains_available
(tmp_path: Path)
tests/core/test_fork_coordination.py:295
Functiontest_fork_from_on_acquired_invalidates_child_acquire
(tmp_path: Path)
tests/core/test_fork_ownership.py:182
Functiontest_fork_interrupted_while_taking_the_gate_reports_no_after_hook_error
(tmp_path: Path)
tests/core/test_fork_coordination.py:241
Functiontest_fork_interrupted_while_waiting_for_a_transition_reopens_admission
(tmp_path: Path)
tests/core/test_fork_coordination.py:171
Functiontest_fork_script_terminates_timed_out_process_group
()
tests/sqlite/test_fork.py:186
Functiontest_fork_transition_finished_on_another_thread_releases_the_entering_thread
()
tests/core/test_fork_coordination.py:325
Functiontest_fork_waits_for_descriptor_registration
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_fork_descriptors.py:60
Functiontest_fork_without_audit_guard_snapshots_current_transition
( tmp_path: Path, fork_mode: Literal["rejected-audit", "fork1"] )
tests/core/test_fork_audit.py:82
Functiontest_forwarding_subclass_singleton_rejects_changed_option
( option: Literal["hook", "policy"], message: str, tmp_path: Path, )
tests/core/test_subclass_options.py:339
Functiontest_fresh_marker_with_truncated_start_token_not_evicted
(lock_path: Path)
tests/soft/exclusive/test_recovery.py:249
Functiontest_generation_is_a_fencing_token
(lock_file: str)
tests/soft/read_write/test_lock_recovery.py:56
Functiontest_generations_are_compacted
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_lock_recovery.py:249
Functiontest_get_lock_returns_singleton
(lock_file: str)
tests/soft/read_write/test_lock_singleton.py:180
Functiontest_get_lock_returns_the_singleton
(lock_file: str)
tests/sqlite/test_lock_settings.py:150
Functiontest_grouped_errors_detach_a_context_already_nested_in_a_sibling
()
tests/core/test_context_errors.py:370
Functiontest_grouped_errors_keep_a_context_that_is_a_distinct_group
()
tests/core/test_context_errors.py:358
Functiontest_handler_acquiring_peer_during_poll_detects_deadlock
( tmp_path: Path, mocker: MockerFixture, thread_local: bool, timeout: float, blocking: bool, expected: typ
tests/core/test_acquire_signal.py:36
← previousnext →2,201–2,300 of 3,548, ranked by callers