MCPcopy Create free account

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

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

Functiontest_release_keeps_marker_cleanup_after_fstat_signal
( lock_path: Path, mocker: MockerFixture, lock_type: type[SoftFileLock] )
tests/soft/exclusive/test_publication_cleanup.py:119
Functiontest_release_keeps_retargeted_parent_holder_registered
(tmp_path: Path)
tests/core/test_registry.py:208
Functiontest_release_keeps_retargeted_parent_holder_registered
(tmp_path: Path)
tests/async_lock/test_paths.py:170
Functiontest_release_leaves_a_peers_claim_alone
(lock_file: str)
tests/soft/read_write/test_heartbeat.py:211
Functiontest_release_never_blocks_on_an_abandoned_claim
(lock_file: str)
tests/soft/read_write/test_lock_recovery.py:90
Functiontest_release_nonzero_counter_exit
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_release.py:103
Functiontest_release_propagates_deadline_after_unlink
( lock_path: Path, mocker: MockerFixture, *, share_refusal: bool )
tests/soft/exclusive/test_publication_cleanup.py:76
Functiontest_release_reentered_after_unlock_closes_descriptor_once
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_release_interruption.py:29
Functiontest_release_returns_while_acquire_waits_for_external_holder
(tmp_path: Path)
tests/async_lock/test_release_cancellation.py:246
Functiontest_release_rollback_failure_after_transaction_end_reports_not_held
( lock_file: str, mocker: MockerFixture, held_mode: Literal["read", "write"], probe_mode: Lite
tests/sqlite/test_transactions_release.py:79
Functiontest_release_rollback_failure_with_open_transaction_keeps_the_lock
( lock_file: str, mocker: MockerFixture, held_mode: Literal["read", "write"], probe_mode: Lite
tests/sqlite/test_transactions_release.py:34
Functiontest_release_serialized_skips_when_peer_already_released
(tmp_path: Path)
tests/async_lock/test_acquire_rollback.py:17
Functiontest_release_suppresses_eio_on_close
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_open.py:110
Functiontest_release_that_ran_before_its_submission_failed_counts
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:272
Functiontest_release_under_a_peers_exchange_leaves_no_marker_naming_this_process
( # pragma: win32 no cover lock_path: Path, )
tests/soft/exclusive/test_publication_release.py:38
Functiontest_release_under_a_peers_exchange_leaves_the_peers_marker
( # pragma: win32 no cover lock_path: Path, mocker: MockerFixture, missing: dict[str, None] )
tests/soft/exclusive/test_publication_release.py:59
Functiontest_release_unheld_lock_raises
(lock_file: str)
tests/sqlite/test_transactions.py:77
Functiontest_release_unheld_raises
(lock_file: str)
tests/sqlite/test_async.py:161
Functiontest_release_waits_for_provisional_acquire
(tmp_path: Path)
tests/async_lock/test_release_cancellation.py:217
Functiontest_release_whose_submission_failed_never_runs
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:248
Functiontest_release_without_hold_raises
(lock_file: str)
tests/soft/read_write/test_hold.py:100
Functiontest_released_record_rewrite_error_spares_successor_marker_without_pwrite
( lock_path: Path, mocker: MockerFixture )
tests/soft/exclusive/test_publication_cleanup.py:40
Functiontest_released_record_write_error_spares_successor_marker
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_release.py:208
Functiontest_releases_hold_of_exited_thread
( lock_type: type[BaseFileLock], drop: Callable[[list[BaseFileLock]], None], tmp_path: Path )
tests/core/test_shutdown.py:175
Functiontest_remove_own_file_placeholder_names_this_process
( tmp_path: Path, mocker: MockerFixture )
tests/filesystem/test_exchange_recovery.py:167
Functiontest_removing_the_log_recovers_without_admitting_a_second_writer
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_lock_recovery.py:110
Functiontest_replaced_tree_cannot_be_writable_under_sticky_parent
( lock_path_in_shared_tmp: Path, mocker: MockerFixture, *, name_only: bool )
tests/soft/read_write/test_storage.py:335
Functiontest_rescan_skips_a_generation_removed_after_listing
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations.py:114
Functiontest_retry_after_interrupted_release_commit_removes_the_registry_entry
( lock_path: Path, mocker: MockerFixture, retry: Callable[[StrictSoftFileLock], None] )
tests/soft/strict/test_release_interruption.py:132
Functiontest_ro_file
(lock_type: type[BaseFileLock], tmp_file_ro: Path)
tests/core/test_lock.py:111
Functiontest_ro_folder
(lock_type: type[BaseFileLock], tmp_path_ro: Path)
tests/core/test_lock.py:92
Functiontest_rollback_failed_acquire_groups_registration_and_release_failures
( tmp_path: Path, mocker: MockerFixture )
tests/core/test_context_errors.py:383
Functiontest_rollback_on_full_filesystem
( lock_path: Path, mocker: MockerFixture, cleanup_errno: int, record: bytes, *, fail_unlink: bool )
tests/soft/exclusive/test_publication_rollback.py:57
Functiontest_runner_shutdown_chains_body_cancellation_and_release_errors
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/async_lock/test_executor.py:92
Functiontest_runner_shutdown_groups_body_cancellation_and_release_errors
( # pragma: needs fcntl tmp_path: Path, mocker: MockerFixture )
tests/async_lock/test_executor.py:189
Functiontest_runner_shutdown_waits_for_executor_acquire_rollback
(tmp_path: Path)
tests/async_lock/test_executor.py:23
Functiontest_runtime_without_interpreter_ids
(mocker: MockerFixture, implementation: str)
tests/sqlite/test_fork_registry.py:52
Functiontest_same_instance_reentrant_acquire_skips_the_executor
( tmp_path: Path, lock_type: type[BaseAsyncFileLock], mocker: MockerFixture )
tests/async_lock/test_owners.py:137
Functiontest_same_instance_reentrant_works
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:94
Functiontest_same_instance_reentrant_works
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:126
Functiontest_same_task_different_instances_raises
( tmp_path: Path, lock_type: type[BaseAsyncFileLock], timeout: float )
tests/async_lock/test_owners.py:26
Functiontest_same_thread_different_instances_raises
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:29
Functiontest_second_close_waits_for_the_owned_worker
( closing_worker: tuple[AsyncReadWriteLock | AsyncSoftReadWriteLock, threading.Thread, threading.Event], )
tests/async_lock/test_read_write_wait.py:247
Functiontest_second_release_does_not_close_reused_descriptor
( lock_path: Path, tmp_path: Path, mocker: MockerFixture, )
tests/soft/exclusive/test_publication_release.py:174
Functiontest_separate_lock_classes_keep_separate_registries
(tmp_path: Path)
tests/core/test_singleton.py:330
Functiontest_sequential_lock_modes
( lock_file: str, first: Literal["read", "write"], second: Literal["read", "write"], )
tests/sqlite/test_lock.py:267
Functiontest_sequential_mode_switch
(lock_file: str)
tests/sqlite/test_async.py:234
Functiontest_sequential_mode_switch
(lock_file: str, first: str, second: str)
tests/sqlite/test_transactions.py:199
Functiontest_shared_directory_ignores_a_directory_at_the_wal_name
( # pragma: needs posix-hard-link shared_database: Path, )
tests/sqlite/test_connection_side_files.py:77
Functiontest_shared_directory_ignores_a_journal_beside_the_database
( # pragma: needs posix-hard-link shared_database: Path, tmp_path: Path )
tests/sqlite/test_connection_side_files.py:35
Functiontest_shared_directory_keeps_sqlite_off_the_name_of_an_unlinked_database
( # pragma: needs posix-hard-link shared_database: Path, tmp_path: Path, mocker: MockerFixture )
tests/sqlite/test_connection_side_files.py:135
Functiontest_shared_instance_admission_wait_respects_the_caller_timeout
(paused_in_transition: FileLock)
tests/core/test_admission.py:201
Functiontest_shared_instance_concurrent_acquire_release_leaves_lock_free
( tmp_path: Path, lock_type: type[BaseFileLock] )
tests/core/test_admission.py:39
Functiontest_shared_instance_refuses_entry_during_another_threads_transition
( paused_in_transition: FileLock, admission: Literal["timeout", "blocking", "cancel"] )
tests/core/test_admission.py:162
Functiontest_shared_instance_release_behind_a_failed_acquire_is_a_no_op
(tmp_path: Path)
tests/core/test_admission.py:117
Functiontest_shared_instance_released_on_another_thread_frees_the_acquirer
(tmp_path: Path)
tests/core/test_admission.py:102
Functiontest_shared_instance_waiter_enters_once_the_transition_finishes
(tmp_path: Path)
tests/core/test_admission.py:180
Functiontest_shared_lease_marker_names_the_lease_token
(tmp_path: Path)
tests/core/test_admission.py:71
Functiontest_shared_lease_refuses_another_thread_after_loss
(marker: Path, mocker: MockerFixture)
tests/soft/test_lease.py:130
Functiontest_shared_singleton_refuses_moved_relative_path
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:225
Functiontest_shared_strict_singleton_refuses_moved_relative_path
( working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/soft/strict/test_lock.py:97
Functiontest_short_attempts_still_evict_a_dead_holder
(lock_file: str)
tests/soft/read_write/test_lock_recovery.py:38
Functiontest_short_writes_still_write_the_whole_record
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_rollback.py:93
Functiontest_signal_handler_can_exit_during_reclaimed_marker_publication
( lock_path: Path, monkeypatch: pytest.MonkeyPatch, *, thread_local: bool )
tests/soft/exclusive/test_publication_cleanup.py:136
Functiontest_simple
( lock_type: type[BaseFileLock], path_type: type[str | Path], filename: str, tmp_path: Path,
tests/core/test_lock.py:33
Functiontest_simple
( lock_type: type[BaseAsyncFileLock], path_type: type[str | Path], filename: str, tmp_path: Pa
tests/async_lock/test_lock.py:26
Functiontest_single_lock_reentrant
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_lock.py:248
Functiontest_single_threaded_writer_handles_signal_while_readers_hold_lock
(lock_file: str)
tests/sqlite/test_lock_contention.py:226
Functiontest_singleton_accepts_a_timeout_that_waits_the_same
(first: float, second: float, tmp_path: Path)
tests/core/test_singleton.py:205
Functiontest_singleton_accepts_a_timeout_that_waits_the_same
( lock_type: type[ReadWriteLock | SoftReadWriteLock], first: float, second: float, lock_file: str )
tests/sqlite/test_lock_settings.py:91
Functiontest_singleton_after_chdir_locks_the_requested_file
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:213
Functiontest_singleton_after_parent_link_moves_locks_the_requested_file
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path] )
tests/core/test_relative_paths.py:295
Functiontest_singleton_and_non_singleton_locks_are_distinct
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_singleton.py:105
Functiontest_singleton_avoids_deadlock
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:104
Functiontest_singleton_avoids_deadlock
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:151
Functiontest_singleton_cache_hit_rejects_unknown_option
(tmp_path: Path)
tests/core/test_subclass_options.py:73
Functiontest_singleton_close_returns_while_another_wrapper_enters
(tmp_path: Path, make: _Make)
tests/async_lock/test_read_write_wait.py:222
Functiontest_singleton_construction_can_overlap_across_classes
(lock_file: str, relation: str)
tests/soft/read_write/test_lock_singleton.py:66
Functiontest_singleton_construction_crossing_fork_does_not_poison_child_cache
(tmp_path: Path)
tests/core/test_fork_construction.py:220
Functiontest_singleton_default_vs_explicit_mode_differ
(tmp_path: Path)
tests/core/test_settings.py:177
Functiontest_singleton_different_files
(tmp_path: Path)
tests/sqlite/test_lock_settings.py:50
Functiontest_singleton_dropped_while_held_is_not_handed_out_again
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_transactions_connection.py:150
Functiontest_singleton_handed_out_while_finalizing_keeps_its_hold
(tmp_path: Path, thread_local: bool)
tests/core/test_shutdown.py:225
Functiontest_singleton_handed_out_while_finalizing_releases_once_dropped
(tmp_path: Path, thread_local: bool)
tests/core/test_shutdown.py:253
Functiontest_singleton_held_before_chdir_re_enters_by_absolute_path
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:281
Functiontest_singleton_instance_tracking_is_unique_per_subclass
(lock_type: type[BaseFileLock])
tests/core/test_singleton.py:224
Functiontest_singleton_locks_are_deleted_when_no_external_references_exist
( lock_type: type[BaseFileLock], tmp_path: Path, )
tests/core/test_singleton.py:212
Functiontest_singleton_locks_are_distinct_per_lock_file
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_singleton.py:150
Functiontest_singleton_locks_are_the_same
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_singleton.py:116
Functiontest_singleton_locks_must_be_initialized_with_the_same_args
( lock_type: type[BaseFileLock], tmp_path: Path, arg_name: str, alternate: float | bool )
tests/core/test_singleton.py:181
Functiontest_singleton_locks_survive_concurrent_first_construction
(tmp_path: Path)
tests/core/test_singleton.py:124
Functiontest_singleton_locks_when_inheriting_init_is_called_once
(tmp_path: Path)
tests/core/test_singleton.py:236
Functiontest_singleton_mismatch_raises
(lock_file: str)
tests/soft/read_write/test_lock_singleton.py:171
Functiontest_singleton_rejects_a_different_on_compromise
(lock_file: str)
tests/soft/read_write/test_lock_singleton.py:219
Functiontest_singleton_rejects_different_blocking
(lock_file: str)
tests/sqlite/test_lock_settings.py:121
Functiontest_singleton_rejects_different_close_policy
(tmp_path: Path)
tests/core/test_context_errors.py:348
Functiontest_singleton_rejects_different_context_policy
(tmp_path: Path)
tests/core/test_context_errors.py:242
Functiontest_singleton_rejects_different_fallback_to_soft
(tmp_path: Path)
tests/native/test_unix_fallback.py:444
Functiontest_singleton_rejects_different_on_acquired
(tmp_path: Path)
tests/core/test_on_acquired.py:204
Functiontest_singleton_rejects_different_preserve_lock_file
(tmp_path: Path)
tests/native/test_file_identity.py:129
← previousnext →2,901–3,000 of 3,548, ranked by callers