MCPcopy Create free account

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

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

Functiontest_context_group_preserves_user_release_cancellation_group
(tmp_path: Path)
tests/async_lock/test_context_errors.py:178
Functiontest_context_group_reconciles_release_cancellation_with_backend_error
(tmp_path: Path)
tests/async_lock/test_acquire_rollback.py:194
Functiontest_context_group_renders_independent_leaves
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], *, enter
tests/core/test_context_errors.py:136
Functiontest_context_group_renders_independent_leaves
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], *, enter
tests/async_lock/test_context_errors.py:61
Functiontest_context_manager_overrides_defaults
(lock_file: str)
tests/sqlite/test_async.py:224
Functiontest_context_manager_uses_instance_defaults
(lock_file: str)
tests/sqlite/test_async.py:214
Functiontest_context_release_on_exc
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_lock.py:252
Functiontest_context_release_only_failure_propagates_release
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], policy: Cont
tests/core/test_context_errors.py:212
Functiontest_context_release_only_failure_propagates_release
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], policy: Cont
tests/async_lock/test_context_errors.py:137
Functiontest_context_resolves_wait_settings
()
tests/test_public_api.py:66
Functiontest_context_surfaces_close_error_after_cleanup
( lock_path: Path, mocker: MockerFixture, enter: Callable[[SoftFileLock], AbstractContextManager[S
tests/soft/exclusive/test_publication_release.py:159
Functiontest_control_flow_registration_error_rolls_back_descriptor
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_fork_backends.py:295
Functiontest_copied_pending_error_waits_for_the_same_operation
()
tests/soft/strict/test_release_observers.py:229
Functiontest_coroutine_acquire_without_holding_polls_and_skips_on_acquired
(tmp_path: Path)
tests/async_lock/test_backend_calls.py:76
Functiontest_coroutine_acquisition_and_registration_errors_are_grouped
( tmp_path: Path, mocker: MockerFixture, release_error: BaseException | None, expected: list[t
tests/core/test_fork_async_backends.py:122
Functiontest_coroutine_acquisition_failure_before_descriptor_propagates
(tmp_path: Path)
tests/core/test_fork_async_backends.py:68
Functiontest_coroutine_acquisition_failure_keeps_descriptor_registered_until_rollback
(tmp_path: Path)
tests/core/test_fork_async_backends.py:81
Functiontest_coroutine_function
(tmp_path: Path)
tests/async_lock/test_backend_calls.py:52
Functiontest_coroutine_on_acquired_and_rollback_errors_are_grouped
(tmp_path: Path)
tests/core/test_fork_async_backends.py:208
Functiontest_coroutine_on_acquired_error_preserves_context
(tmp_path: Path)
tests/core/test_fork_async_backends.py:190
Functiontest_coroutine_registration_error_rolls_back_descriptor
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_fork_async_backends.py:24
Functiontest_coroutine_registration_failure_tracks_descriptor_when_rollback_fails
( tmp_path: Path, mocker: MockerFixture )
tests/core/test_fork_async_backends.py:158
Functiontest_create_flushes_only_a_durable_record
(tmp_path: Path, mocker: MockerFixture, *, durable: bool)
tests/soft/read_write/test_storage.py:73
Functiontest_create_rolls_back_a_failed_write
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_storage.py:63
Functiontest_creator_that_loses_the_flock_applies_mode
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_modes.py:77
Functiontest_cross_task_blocking_acquire_queues
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:187
Functiontest_current_context_exposes_the_transition_gate
()
tests/test_asyncio.py:18
Functiontest_custom_executor
(lock_file: str)
tests/sqlite/test_async_executor.py:78
Functiontest_daemon_hold_survives_interpreter_cleanup
(lock_file: str, lock: SoftReadWriteLock, mode: str)
tests/soft/read_write/test_lock_shutdown.py:79
Functiontest_dangling_symlink_does_not_create_its_target
(lock_path: Path)
tests/soft/exclusive/test_publication.py:55
Functiontest_darwin_sysctl_probe_failure_reads_no_token
(mocker: MockerFixture)
tests/identity/test_process.py:197
Functiontest_dead_holder_evicted_by_contender
( lock_file: str, lock: SoftReadWriteLock, dead_mode: Literal["read", "write"], contender_mode
tests/soft/read_write/test_heartbeat.py:49
Functiontest_deadlock_registry_cleanup_on_release
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:220
Functiontest_deadlock_registry_cleanup_on_release
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:234
Functiontest_default_mode_respects_umask
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_settings.py:57
Functiontest_default_mode_skips_fchmod
(tmp_path: Path, mocker: MockType)
tests/core/test_settings.py:73
Functiontest_default_poll_interval
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_timeout.py:115
Functiontest_default_stale_threshold_is_triple_heartbeat
(lock_file: str)
tests/soft/read_write/test_lock.py:136
Functiontest_default_timeout
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_timeout.py:74
Functiontest_del
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_shutdown.py:38
Functiontest_del_after_loop_close_does_not_raise
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/async_lock/test_finalization.py:40
Functiontest_del_keeps_provided_executor_open
(lock_file: str)
tests/sqlite/test_async_executor.py:168
Functiontest_del_releases_hold_of_live_thread
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_shutdown.py:194
Functiontest_del_shuts_down_owned_executor
(lock_file: str)
tests/sqlite/test_async_executor.py:159
Functiontest_del_suppresses_a_release_error
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_release.py:81
Functiontest_del_with_stopped_loop_releases_on_that_loop
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/async_lock/test_finalization.py:60
Functiontest_denied_lock_file_is_reopened_in_the_acquisition_directory
( # pragma: needs fcntl working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch, mocker:
tests/native/test_unix_open.py:43
Functiontest_describe_host_name_shows_this_hosts_name_unchanged
()
tests/identity/test_host.py:55
Functiontest_describe_host_name_stays_within_the_marker_grammar
(recorded: str, shown: str)
tests/identity/test_host.py:70
Functiontest_descriptor_first_blocks_filelock_until_released
(tmp_path: Path)
tests/native/test_descriptor.py:125
Functiontest_descriptor_ownership_needs_a_new_permission_check
( # pragma: linux cover mocker: MockerFixture, sticky_fd: int, reported_owner: Callable[[], int | None],
tests/filesystem/test_ownership.py:169
Functiontest_descriptor_ownership_preserves_flags
( # pragma: linux cover sticky_fd: int, reported_owner: Callable[[], int | None], allowed: bool )
tests/filesystem/test_ownership.py:151
Functiontest_descriptor_ownership_propagates_a_flag_restore_error
( # pragma: linux cover mocker: MockerFixture, reported_owner: Callable[[], int | None] )
tests/filesystem/test_ownership.py:179
Functiontest_descriptors_on_counts_a_descriptor_numbered_above_the_static_nodes
( # pragma: needs fd-directory tmp_path: Path, )
tests/native/test_descriptor.py:251
Functiontest_descriptors_on_probes_every_number_behind_an_incomplete_directory
( # pragma: needs fd-directory tmp_path: Path, mocker: MockerFixture )
tests/native/test_descriptor.py:234
Functiontest_different_paths_no_conflict
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:85
Functiontest_different_paths_no_conflict
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:116
Functiontest_different_tasks_no_false_positive
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:163
Functiontest_different_threads_no_false_positive
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:115
Functiontest_direct_descriptor_backend_keeps_new_hold_on_interrupted_release
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_fork_backends.py:56
Functiontest_displaced_marker_can_retry_release_after_timeout
( lock_path: Path, mocker: MockerFixture, operation: str )
tests/soft/exclusive/test_publication_release.py:230
Functiontest_documented_cache_lock_name
(tmp_path: Path, key: str)
tests/core/test_lock.py:62
Functiontest_double_check_read_reentrance
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_transactions.py:341
Functiontest_double_check_write_reentrance
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_transactions.py:370
Functiontest_double_check_wrong_mode_raises
( lock_file: str, mocker: MockerFixture, acquire_mode: Literal["read", "write"], conflicting_m
tests/sqlite/test_transactions.py:402
Functiontest_downgrade_write_to_read_prohibited
(lock_file: str)
tests/sqlite/test_transactions.py:69
Functiontest_dropping_a_lock_closes_its_connection
(lock_file: str)
tests/sqlite/test_transactions_connection.py:138
Functiontest_dual_body_and_close_failure_grouped
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_context_errors.py:331
Functiontest_dynamic_lock_class_can_be_collected
()
tests/core/test_fork_registries.py:166
Functiontest_each_acquisition_resolves_the_working_directory
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:157
Functiontest_early_acquire_exception_leaves_no_counted_hold
( tmp_path: Path, mocker: MockerFixture, lock_type: type[BaseFileLock], thread_local: bool,
tests/core/test_interruption.py:235
Functiontest_early_acquire_refuses_same_stack_reentry
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_interruption.py:286
Functiontest_early_async_acquire_exception_leaves_no_counted_hold
( lock_type: type[BaseAsyncFileLock], interrupted: str, tmp_path: Path, mocker: MockerFixture )
tests/async_lock/test_acquire.py:86
Functiontest_early_child_callback_with_matching_pid
(tmp_path: Path, action: str)
tests/core/test_fork_namespaces.py:64
Functiontest_early_commits_unlink_no_negative_generation
(lock_file: str, files: OsFiles, mocker: MockerFixture)
tests/soft/read_write/test_generations_compaction.py:84
Functiontest_early_nested_acquire_exception_keeps_one_level
( tmp_path: Path, mocker: MockerFixture, lock_type: type[BaseFileLock] )
tests/core/test_interruption.py:268
Functiontest_early_soft_read_write_child_callback_with_matching_pid
( # pragma: linux cover # pragma: needs hard-link tmp_path: Path, action: str )
tests/core/test_fork_namespaces.py:205
Functiontest_embedded_cpython_without_the_interpreters_module
(mocker: MockerFixture)
tests/sqlite/test_fork_registry.py:59
Functiontest_empty_lock_not_evicted_when_old
(lock_path: Path, lock_type: type[SoftFileLock])
tests/soft/exclusive/test_recovery.py:170
Functiontest_encode_marker_omits_absent_lease_fields
()
tests/soft/test_records.py:57
Functiontest_equal_unhashable_locks_reset_independently
(tmp_path: Path)
tests/core/test_fork_registries.py:30
Functiontest_equal_unhashable_soft_read_write_locks_survive_atexit_registry
( tmp_path: Path, )
tests/core/test_fork_registries.py:133
Functiontest_equivalent_relative_singleton_spellings_follow_chdir
( working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:266
Functiontest_errno_after_async_unix_unlock_refuses_reentrant_acquire
( tmp_path: Path, mocker: MockerFixture, run_in_executor: bool )
tests/async_lock/test_release_cancellation.py:144
Functiontest_errno_after_unix_unlock_refuses_reentrant_acquire
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_release_interruption.py:186
Functiontest_errno_before_unix_unlock_keeps_explicit_retry
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_release_interruption.py:214
Functiontest_escaped_child_is_stopped_at_report
()
tests/core/test_fork_helpers.py:38
Functiontest_exception_copy_shares_notes
(error: Timeout | SoftFileLockProtocolError)
tests/core/test_errors.py:90
Functiontest_exception_deepcopy_isolates_notes
(error: Timeout | SoftFileLockProtocolError)
tests/core/test_errors.py:96
Functiontest_exception_serialization_creates_distinct_instance
( error: Timeout | SoftFileLockProtocolError, clone: Callable[[Timeout | SoftFileLockProtocolError], T
tests/core/test_errors.py:73
Functiontest_exception_serialization_preserves_cycle
( error: Timeout | SoftFileLockProtocolError, clone: Callable[[Timeout | SoftFileLockProtocolError], T
tests/core/test_errors.py:102
Functiontest_exception_serialization_preserves_diagnostics
( error: Timeout | SoftFileLockProtocolError, clone: Callable[[Timeout | SoftFileLockProtocolError], T
tests/core/test_errors.py:47
Functiontest_exception_serialization_preserves_note_alias
( error: Timeout | SoftFileLockProtocolError, clone: Callable[[Timeout | SoftFileLockProtocolError], T
tests/core/test_errors.py:80
Functiontest_executor_acquire_keeps_filesystem_calls_off_the_loop
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_acquire.py:238
Functiontest_executor_can_be_reassigned
(tmp_path: Path)
tests/async_lock/test_backend_calls.py:40
Functiontest_executor_cancels_queued_acquire_without_compensation
(lock_file: str, *, cancel_caller: bool)
tests/sqlite/test_async_cancellation.py:73
Functiontest_executor_shutdown_drops_queued_acquire_with_runtime_error
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:201
Functiontest_executor_shutdown_drops_queued_release_with_runtime_error
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:224
Functiontest_existing_lock_file_open_that_would_block_is_contention
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix.py:232
Functiontest_expired_break_spares_a_successor_on_the_freed_inode_number
( # pragma: win32 no cover tmp_path: Path, mocker: MockerFixture, reuse_inode: Callable[[Path, os.stat_re
tests/soft/exclusive/test_recovery_expiry.py:90
← previousnext →2,101–2,200 of 3,548, ranked by callers