MCPcopy Create free account

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

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

Functiontest_read_write_lock_checks_owner_of_reused_probe
( # pragma: needs foreign-sticky-tmp tmp_path: Path, lock_path_in_shared_tmp: Path, mocker: MockerFixture
tests/sqlite/test_connection.py:163
Functiontest_read_write_lock_close_interrupted_among_its_probes_closes_the_rest_later
( # pragma: needs fd-directory tmp_path: Path, mocker: MockerFixture, first_name: Literal["older"
tests/sqlite/test_connection_descriptors.py:138
Functiontest_read_write_lock_closes_idle_connections
(tmp_path: Path)
tests/sqlite/test_connection_descriptors.py:33
Functiontest_read_write_lock_connect_interrupted_once_it_leases_a_probe_releases_it
( # pragma: needs fd-directory tmp_path: Path, mocker: MockerFixture, taking: Literal["retain", "adopt"],
tests/sqlite/test_connection_descriptors.py:216
Functiontest_read_write_lock_cycling_beside_a_holder_keeps_descriptors_flat
(tmp_path: Path)
tests/sqlite/test_connection_descriptors.py:108
Functiontest_read_write_lock_database_keeps_out_the_directory_acl
( inheriting_directory: Path, )
tests/sqlite/test_connection_windows.py:147
Functiontest_read_write_lock_dropped_instances_leave_no_descriptors
(tmp_path: Path)
tests/sqlite/test_connection_descriptors.py:66
Functiontest_read_write_lock_escrow_ignores_shared_ctypes_signatures
(tmp_path: Path)
tests/sqlite/test_lock_reentry.py:151
Functiontest_read_write_lock_finalized_while_probes_are_recorded_does_not_deadlock
( # pragma: win32 no cover tmp_path: Path, mocker: MockerFixture )
tests/sqlite/test_connection_descriptors.py:249
Functiontest_read_write_lock_fork_at_sqlite_boundary_exits_child
( # pragma: needs fork tmp_path: Path, boundary: Literal["execute", "rollback", "close", "connection-retu
tests/sqlite/test_fork_transition.py:302
Functiontest_read_write_lock_fork_beside_a_waiting_acquire_returns
(tmp_path: Path)
tests/sqlite/test_fork_transition.py:244
Functiontest_read_write_lock_fork_waits_for_sqlite_operation
(tmp_path: Path)
tests/sqlite/test_fork_transition.py:158
Functiontest_read_write_lock_idle_fork_handles_fresh_child_lock
(tmp_path: Path)
tests/sqlite/test_fork.py:81
Functiontest_read_write_lock_keeps_constructed_database
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/sqlite/test_lock.py:279
Functiontest_read_write_lock_keeps_its_probe_descriptor_while_held
(tmp_path: Path)
tests/sqlite/test_connection_descriptors.py:99
Functiontest_read_write_lock_open_blocked_by_an_oplock_is_a_timeout
(tmp_path: Path, mocker: MockerFixture)
tests/sqlite/test_connection_windows.py:134
Functiontest_read_write_lock_oplocked_database_raises_timeout_after_its_timeout
( tmp_path: Path, hold_oplock: Callable[[Path], Callable[[], None]] )
tests/sqlite/test_connection_windows.py:106
Functiontest_read_write_lock_pypy_child_allows_without_known_sqlite_use
(tmp_path: Path)
tests/sqlite/test_fork.py:125
Functiontest_read_write_lock_pypy_child_rejects_after_external_sqlite_use
(tmp_path: Path)
tests/sqlite/test_fork.py:152
Functiontest_read_write_lock_refuses_a_database_converted_to_wal_after_construction
(lock_file: str)
tests/sqlite/test_connection.py:219
Functiontest_read_write_lock_refuses_a_database_held_without_sharing
(tmp_path: Path)
tests/sqlite/test_connection_windows.py:90
Functiontest_read_write_lock_refuses_a_database_moved_after_connect
( tmp_path: Path, mocker: MockerFixture, *, replace: bool )
tests/sqlite/test_connection.py:252
Functiontest_read_write_lock_refuses_a_database_of_another_account
( # pragma: needs foreign-sticky-tmp lock_path_in_shared_tmp: Path, )
tests/sqlite/test_connection.py:150
Functiontest_read_write_lock_refuses_a_non_regular_path
(tmp_path: Path)
tests/sqlite/test_connection.py:139
Functiontest_read_write_lock_refuses_a_schema_row_longer_than_a_lock_needs
( tmp_path: Path, mode: Literal["read", "write"] )
tests/sqlite/test_connection_schema.py:76
Functiontest_read_write_lock_refuses_a_schema_that_never_finishes_loading
( tmp_path: Path, mode: Literal["read", "write"] )
tests/sqlite/test_connection_schema.py:26
Functiontest_read_write_lock_refuses_a_symlinked_path
(tmp_path: Path)
tests/sqlite/test_connection.py:129
Functiontest_read_write_lock_refuses_a_wal_database
(lock_file: str)
tests/sqlite/test_connection.py:179
Functiontest_read_write_lock_refuses_large_application_schema
( tmp_path: Path, rows: int, unique_per_row: int, row_length: int )
tests/sqlite/test_connection_schema.py:119
Functiontest_read_write_lock_refuses_read_only_sqlite_header
(tmp_path: Path, versions: bytes)
tests/sqlite/test_connection.py:194
Functiontest_read_write_lock_refuses_wal_switch_during_acquire
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/sqlite/test_connection.py:228
Functiontest_read_write_lock_rejects_recursive_singleton_construction
(tmp_path: Path, audit_event: str)
tests/sqlite/test_lock_reentry.py:99
Functiontest_read_write_lock_rejects_same_thread_operation_during_acquisition
( tmp_path: Path, operation: Literal["acquire", "release", "close"] )
tests/sqlite/test_lock_reentry.py:192
Functiontest_read_write_lock_release_interrupted_once_its_probe_release_applies
( tmp_path: Path, mocker: MockerFixture, contender_output: str, *, peer_count: int )
tests/sqlite/test_connection_descriptors.py:175
Functiontest_read_write_lock_serializes_other_thread_operation_during_acquisition
( tmp_path: Path, operation: Literal["release", "close"] )
tests/sqlite/test_lock_reentry.py:258
Functiontest_read_write_lock_subclass_cache_resets_after_fork
(tmp_path: Path)
tests/sqlite/test_fork.py:192
Functiontest_read_write_lock_subclass_has_independent_singletons
(tmp_path: Path)
tests/sqlite/test_lock_reentry.py:74
Functiontest_read_write_lock_survives_normal_fork_child_exit
( tmp_path: Path, mode: Literal["read", "write"], fork_name: Literal["fork", "fork1"], audit_h
tests/sqlite/test_fork_transition.py:44
Functiontest_read_write_lock_waits_for_an_oplock_holder_that_answers
( tmp_path: Path, hold_oplock: Callable[[Path], Callable[[], None]] )
tests/sqlite/test_connection_windows.py:119
Functiontest_read_write_locks_held_together_each_keep_their_own_probe
(tmp_path: Path)
tests/sqlite/test_connection_descriptors.py:122
Functiontest_read_write_locks_require_the_main_interpreter
( tmp_path: Path, *, without_legacy_module: bool )
tests/sqlite/test_lock.py:308
Functiontest_readonly_lock_file_with_mtime_zero_raises
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/native/test_file_identity.py:29
Functiontest_record_duration_reads_back
(marker: Path, duration: float)
tests/soft/test_records.py:64
Functiontest_record_from_a_newer_filelock_still_names_its_owner
(tmp_path: Path)
tests/soft/test_records.py:82
Functiontest_record_operations_recheck_the_owner_of_a_replaced_directory
( # pragma: needs foreign-sticky-tmp lock_path_in_shared_tmp: Path, mocker: MockerFixture, call: Callable
tests/soft/read_write/test_storage.py:394
Functiontest_record_operations_round_trip_without_dir_fd
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:413
Functiontest_record_start_token_reads_back
(tmp_path: Path)
tests/soft/test_records.py:71
Functiontest_record_with_an_unknown_mode_names_its_owner
(tmp_path: Path, published: str)
tests/soft/test_records.py:94
Functiontest_record_zero_write_rolls_back
(lock_file: str, mocker: MockerFixture)
tests/soft/read_write/test_lock_storage.py:228
Functiontest_records_are_owner_only
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_lock_storage.py:206
Functiontest_recursive_lock_acquisition
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_lock.py:167
Functiontest_recycled_pid_marker_self_heals
(lock_path: Path)
tests/soft/exclusive/test_recovery.py:113
Functiontest_recycled_pid_marker_self_heals_only_in_its_pid_namespace
( lock_path: Path, mocker: MockerFixture, contender_namespace: int, *, reclaimed: bool )
tests/soft/exclusive/test_recovery.py:129
Functiontest_reentered_release_keeps_the_outer_hold_until_unlock
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_release_interruption.py:51
Functiontest_reentrant
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_async.py:90
Functiontest_reentrant_acquire_after_directory_rename
( lock_type: type[BaseFileLock], occupy_old_name: Callable[[Path], object], tmp_path: Path )
tests/core/test_relative_paths.py:141
Functiontest_reentrant_acquire_rejects_invalid_timeout
( timeout_locks: tuple[ReadWriteLock | SoftReadWriteLock, ReadWriteLock | SoftReadWriteLock], mode: Li
tests/sqlite/test_transactions_settings.py:157
Functiontest_reentrant_async_proxy_failure_keeps_one_level
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_acquire.py:123
Functiontest_reentrant_lock
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_transactions.py:49
Functiontest_reentrant_read_holds_and_releases
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_hold.py:27
Functiontest_reentrant_write_holds_and_releases
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_hold.py:35
Functiontest_refused_database_open_does_not_spin
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_read_write_wait.py:127
Functiontest_refused_database_open_obeys_async_cancellation
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_read_write_wait.py:146
Functiontest_refused_database_open_preserves_deadline_after_a_slow_refusal
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_lock.py:52
Functiontest_refused_database_open_waits_without_spinning
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_lock.py:34
Functiontest_registration_failure_rolls_back_and_surfaces_cleanup
(tmp_path: Path)
tests/async_lock/test_acquire_rollback.py:121
Functiontest_registration_failure_tracks_descriptor_when_rollback_fails
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_fork_backends.py:186
Functiontest_registration_transition_completes_after_fork_hook_closes_admission
(tmp_path: Path)
tests/core/test_fork_transitions.py:256
Functiontest_rejects_an_interval_it_cannot_use
( tmp_path: Path, name: str, value: float, error: type[Exception], problem: str )
tests/soft/read_write/test_lock.py:45
Functiontest_rejects_invalid_interval_relationship
( lock_file: str, heartbeat_interval: float, stale_threshold: float | None, poll_interval: float, match: s
tests/soft/read_write/test_lock.py:105
Functiontest_rejects_invalid_intervals
( tmp_path: Path, lock_type: type[SoftReadWriteLock | AsyncSoftReadWriteLock], keep: Callable[[Pat
tests/soft/read_write/test_lock.py:78
Functiontest_relative_release_after_directory_rename_removes_marker
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path] )
tests/core/test_relative_paths.py:92
Functiontest_relative_release_uses_acquisition_directory
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:73
Functiontest_relative_waiter_keeps_acquisition_directory
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path] )
tests/core/test_relative_paths.py:40
Functiontest_release_after_a_staged_snapshot_disappears
( lock_file: str, lock: SoftReadWriteLock, mocker: MockerFixture, missing: str )
tests/soft/read_write/test_lock_recovery.py:170
Functiontest_release_cancellation_chains_backend_error
( tmp_path: Path, mocker: MockerFixture, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_release_cancellation.py:275
Functiontest_release_cancellation_groups_backend_error
( tmp_path: Path, mocker: MockerFixture, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_release_cancellation.py:326
Functiontest_release_cancellation_hands_the_lock_to_the_next_task
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/sqlite/test_async_release_cancellation.py:76
Functiontest_release_cancellation_surfaces_backend_error
(tmp_path: Path)
tests/async_lock/test_acquire_rollback.py:49
Functiontest_release_completes_despite_cancellation
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_release_cancellation.py:28
Functiontest_release_drops_acquisition_key_after_parent_retarget
(tmp_path: Path, depth: int)
tests/core/test_registry.py:157
Functiontest_release_drops_acquisition_key_after_parent_retarget
(tmp_path: Path, depth: int)
tests/async_lock/test_paths.py:117
Functiontest_release_early_exit_when_unlocked
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/async_lock/test_release.py:94
Functiontest_release_finishes_when_marker_disappears_before_unlink
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_cleanup.py:58
Functiontest_release_force
(lock_file: str)
tests/sqlite/test_async.py:169
Functiontest_release_force_closes_lingering_connection_at_zero_level
(lock_file: str)
tests/sqlite/test_transactions.py:100
Functiontest_release_force_on_reentrant_lock_drops_all
(lock: SoftReadWriteLock)
tests/soft/read_write/test_hold.py:118
Functiontest_release_force_resets_level
(lock_file: str)
tests/sqlite/test_transactions.py:90
Functiontest_release_force_unheld_is_noop
(lock_file: str)
tests/sqlite/test_async.py:180
Functiontest_release_force_unheld_is_noop
(lock_file: str)
tests/sqlite/test_transactions.py:83
Functiontest_release_force_without_hold_is_noop
(lock_file: str)
tests/soft/read_write/test_hold.py:109
Functiontest_release_from_a_task_that_does_not_hold_raises
(lock_file: str)
tests/sqlite/test_async_contention.py:100
Functiontest_release_from_different_task_clears_registry
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:217
Functiontest_release_from_on_compromise_leaves_cleanly
(lock_file: str, force: bool, mode: Literal["read", "write"])
tests/soft/read_write/test_heartbeat.py:324
Functiontest_release_interrupted_at_any_call_leaves_the_lock_usable
( tmp_path: Path, lock_type: type[BaseFileLock], thread_local: bool )
tests/core/test_interruption.py:36
Functiontest_release_interrupted_below_release_completes
( tmp_path: Path, lock_type: type[BaseFileLock], thread_local: bool )
tests/core/test_interruption.py:170
Functiontest_release_interrupted_by_a_signal_before_the_backend_completes
( tmp_path: Path, mocker: MockerFixture, thread_local: bool )
tests/core/test_release_interruption.py:246
Functiontest_release_interrupted_while_joining_the_heartbeat_still_leaves
(lock_file: str, mocker: MockerFixture)
tests/soft/read_write/test_lock_shutdown.py:139
Functiontest_release_keeps_lock_held_when_unlock_fails
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_release.py:119
Functiontest_release_keeps_lock_until_final_hold
(tmp_path: Path)
tests/native/test_native_release.py:22
← previousnext →2,801–2,900 of 3,548, ranked by callers