MCPcopy Create free account

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

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

Functiontest_cancel_check_log_message
( lock_type: type[BaseFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/core/test_timeout.py:306
Functiontest_cancel_check_log_message
( lock_type: type[BaseAsyncFileLock], tmp_path: Path, caplog: pytest.LogCaptureFixture )
tests/async_lock/test_acquire.py:220
Functiontest_cancel_check_not_called_when_lock_available
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_timeout.py:280
Functiontest_cancel_check_not_called_when_lock_available
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/async_lock/test_acquire.py:202
Functiontest_cancel_check_triggers
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_timeout.py:240
Functiontest_cancel_check_triggers
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/async_lock/test_acquire.py:187
Functiontest_canceled_hold_stops_waiting_when_work_is_no_longer_owed
()
tests/async_lock/test_transitions.py:109
Functiontest_cancellation_surfaces_rollback_error
( lock_file: str, mocker: MockerFixture, operation: Literal["release", "close"] )
tests/sqlite/test_async_release_cancellation.py:105
Functiontest_cancelled_async_acquire_unregisters_reused_descriptor
(tmp_path: Path)
tests/core/test_fork_transitions.py:350
Functiontest_cancelled_queued_acquire_does_not_claim_transition
(tmp_path: Path)
tests/async_lock/test_acquire_cancellation.py:315
Functiontest_change_of_mode_while_held_raises
( lock: SoftReadWriteLock, first_mode: Literal["read", "write"], second_mode: Literal["read", "write"], di
tests/soft/read_write/test_hold.py:48
Functiontest_child_callback_registered_before_filelock_can_acquire
(tmp_path: Path)
tests/core/test_fork_ownership.py:207
Functiontest_child_cleanup_preserves_parent_lock
( tmp_path: Path, lock_type: type[BaseFileLock], action: Literal["release", "context", "collect"],
tests/core/test_fork_ownership.py:48
Functiontest_child_closes_descriptor_held_by_vanished_thread
(tmp_path: Path)
tests/core/test_fork_descriptors.py:25
Functiontest_child_fork_lock_behavior
(tmp_path: Path, scenario: str, names: tuple[str, ...])
tests/soft/read_write/test_lock_fork.py:43
Functiontest_child_forked_by_a_daemon_thread_at_exit_keeps_its_fork_bookkeeping
(tmp_path: Path)
tests/core/test_fork_shutdown.py:56
Functiontest_child_interpreter_exit_preserves_parent_lock
( tmp_path: Path, kind: Literal["native", "soft", "soft-rw"] )
tests/core/test_fork_ownership.py:265
Functiontest_child_replaces_parameter_model_mutex_held_during_construction
(tmp_path: Path)
tests/core/test_fork_construction.py:24
Functiontest_child_replaces_singleton_mutex_held_by_vanished_thread
(tmp_path: Path)
tests/core/test_fork_construction.py:349
Functiontest_child_singleton_registry_drops_parent_instance
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_fork_ownership.py:130
Functiontest_child_unwinds_pre_fork_transition_before_new_acquire
(tmp_path: Path)
tests/core/test_fork_transitions.py:23
Functiontest_child_with_matching_numeric_pid_preserves_parent_lock
( tmp_path: Path, mocker: MockerFixture, lock_type: type[BaseFileLock] )
tests/core/test_fork_namespaces.py:35
Functiontest_claim_inspection_reports_a_stale_directory
(initialized_lock_path: Path, mocker: MockerFixture)
tests/soft/strict/test_scan.py:56
Functiontest_cleanup_closes_the_process
()
tests/soft/read_write/test_lock_fork.py:200
Functiontest_cleanup_reports_the_failure_that_escaped_before_a_start
()
tests/sqlite/test_transactions_release.py:109
Functiontest_cleanup_soft_lock
(tmp_path: Path)
tests/soft/exclusive/test_marker_ownership.py:25
Functiontest_cleanup_terminates_a_still_running_process
()
tests/soft/read_write/test_lock_fork.py:187
Functiontest_close_after_commit_ignores_other_descriptors
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_cleanup.py:296
Functiontest_close_after_commit_ignores_other_descriptors
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_close_errors.py:152
Functiontest_close_and_marker_cleanup_failures_are_grouped
( # pragma: win32 cover lock_path: Path, mocker: MockerFixture )
tests/soft/exclusive/test_publication_cleanup.py:240
Functiontest_close_cancellation_leaves_a_supplied_executor_running
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_async_release_cancellation.py:28
Functiontest_close_cancellation_shuts_down_an_owned_executor
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_async_release_cancellation.py:64
Functiontest_close_during_acquire_leaves_no_hold
( lock_file: str, mocker: MockerFixture, blocking: Callable[[SoftReadWriteLock], AbstractContextManager[No
tests/soft/read_write/test_lock_close.py:51
Functiontest_close_error_default_raises_on_windows
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_context_errors.py:278
Functiontest_close_error_default_suppressed_on_unix
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_context_errors.py:253
Functiontest_close_error_default_suppressed_on_unix
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_close_errors.py:203
Functiontest_close_error_policy_cleans_marker
(lock_path: Path, mocker: MockerFixture, policy: CloseErrorPolicy)
tests/soft/exclusive/test_publication_release.py:118
Functiontest_close_error_raise_is_exact_and_committed
(tmp_path: Path, mocker: MockerFixture, errno: int)
tests/core/test_context_errors.py:296
Functiontest_close_error_raise_propagates
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_close_errors.py:179
Functiontest_close_error_spares_successor_marker
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_release.py:197
Functiontest_close_error_suppress
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_context_errors.py:287
Functiontest_close_error_suppress_policy_cleans_marker
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_release.py:128
Functiontest_close_error_suppression_forced_release_releases_once
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_release.py:146
Functiontest_close_error_suppression_releases_nested_acquisitions_once
(lock_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication_release.py:136
Functiontest_close_interrupts_backend_wait_while_peer_holds
(lock_file: str, *, is_singleton: bool)
tests/sqlite/test_async_close.py:55
Functiontest_close_is_idempotent
(lock_file: str)
tests/soft/read_write/test_lock_close.py:25
Functiontest_close_keeps_provided_executor_open
(lock_file: str)
tests/sqlite/test_async_executor.py:151
Functiontest_close_leaves_the_default_executor_idle
(lock_file: str, *, shut_down: bool)
tests/sqlite/test_async_executor.py:123
Functiontest_close_not_reached_when_unlock_fails
(tmp_path: Path, mocker: MockerFixture)
tests/core/test_context_errors.py:310
Functiontest_close_on_unheld_lock_closes_connection
(lock_file: str)
tests/sqlite/test_transactions.py:165
Functiontest_close_rejects_later_acquisition_held_owned_executor
(lock_file: str)
tests/sqlite/test_async_executor.py:38
Functiontest_close_rejects_later_acquisition_held_supplied_executor
(lock_file: str)
tests/sqlite/test_async_executor.py:57
Functiontest_close_rejects_later_acquisition_idle_owned_executor
(lock_file: str)
tests/sqlite/test_async_executor.py:30
Functiontest_close_rejects_later_acquisition_idle_supplied_executor
(lock_file: str)
tests/sqlite/test_async_executor.py:47
Functiontest_close_releases_lock_and_closes_connection
(lock_file: str)
tests/sqlite/test_transactions.py:155
Functiontest_close_shuts_down_owned_executor
(lock_file: str)
tests/sqlite/test_async_executor.py:113
Functiontest_close_while_polling_stops_the_wait
(lock_file: str, mocker: MockerFixture)
tests/soft/read_write/test_lock_close.py:74
Functiontest_closed_directory_ignores_a_journal_left_beside_the_database
( # pragma: needs posix-hard-link shared_database: Path, tmp_path: Path )
tests/sqlite/test_connection_side_files.py:59
Functiontest_closing_an_unused_singleton_starts_no_worker
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_async_executor.py:141
Functiontest_closing_every_instance_closes_its_descriptors
(lock_file: str)
tests/sqlite/test_connection.py:78
Functiontest_closing_first_writer_preserves_next_writer
(lock_file: str)
tests/sqlite/test_async_close.py:268
Functiontest_commit_after_a_stale_pause_restarts_the_claim
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_participant.py:207
Functiontest_commit_into_a_log_replaced_since_the_read_is_refused
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_generations_head.py:79
Functiontest_commit_into_a_slot_the_log_moved_past_is_refused
( lock_file: str, files: OsFiles, root: str, generation: int )
tests/soft/read_write/test_generations_head.py:126
Functiontest_commit_keeps_a_published_generation_when_listing_overflows
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_sweep.py:99
Functiontest_commit_refuses_a_generation_that_exists
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_generations.py:101
Functiontest_compaction_keeps_a_replacement_writer_at_the_same_generation
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_publication.py:65
Functiontest_compaction_leaves_more_survivors_than_a_batch_to_the_listing
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_compaction.py:50
Functiontest_compaction_removes_a_stalled_survivor_before_the_window_edge
( lock_file: str, files: OsFiles, root: str )
tests/soft/read_write/test_generations_compaction.py:21
Functiontest_complete_fd_directory_probe_needs_a_view
()
tests/native/test_descriptor.py:271
Functiontest_complete_fd_directory_probe_rejects_a_static_view
(tmp_path: Path)
tests/native/test_descriptor.py:265
Functiontest_concurrent_acquire_release_keeps_lock_file
(tmp_path: Path)
tests/native/test_file_identity.py:50
Functiontest_concurrent_fallback_keeps_both_acquires_valid
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_fallback.py:212
Functiontest_concurrent_force_releases_free_an_exited_threads_hold_once
( lock_type: type[BaseFileLock], tmp_path: Path, mocker: MockerFixture, caplog: pytest.LogCaptureFixture )
tests/core/test_shutdown.py:262
Functiontest_concurrent_fork_after_first_snapshot_does_not_deadlock
( tmp_path: Path, audit_mode: Literal["installed", "rejected"] )
tests/core/test_fork_coordination.py:94
Functiontest_connection_close_from_another_process_leaves_it_open
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_transactions_connection.py:172
Functiontest_constructor_model_does_not_retain_dynamic_subclass
(tmp_path: Path)
tests/core/test_subclass_options.py:369
Functiontest_constructor_rejects_a_blocking_that_is_not_a_bool
( lock_type: type[ReadWriteLock | SoftReadWriteLock], blocking: str | int, lock_file: str )
tests/sqlite/test_lock_settings.py:110
Functiontest_constructor_rejects_a_timeout_that_is_not_a_number
( lock_type: type[ReadWriteLock | SoftReadWriteLock], timeout: bool | str, lock_file: str )
tests/sqlite/test_lock_settings.py:98
Functiontest_constructor_rejects_non_bool_blocking
(blocking: str | int | None, tmp_path: Path)
tests/core/test_timeout_validation.py:67
Functiontest_constructor_rejects_non_number_timeout
(timeout: str | list[int] | bool | None, tmp_path: Path)
tests/core/test_timeout_validation.py:59
Functiontest_contended_acquire_beside_another_thread_times_out_on_time
( sync_locks: tuple[ReadWriteLock, ReadWriteLock], )
tests/sqlite/test_transactions_settings.py:75
Functiontest_contender_does_not_fchmod
(held_lock_path: Path, mocker: MockerFixture)
tests/native/test_unix_modes.py:117
Functiontest_contender_preserves_holder_contents
(held_lock_path: Path)
tests/native/test_unix_modes.py:97
Functiontest_contender_preserves_holder_mode
(held_lock_path: Path)
tests/native/test_unix_modes.py:107
Functiontest_contention_obeys_acquisition_policy
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"], timeout: float, *, blocking: bool
tests/soft/read_write/test_lock_contention.py:287
Functiontest_context_body_only_failure_propagates_body
( tmp_path: Path, policy: ContextErrorPolicy, *, enter: Callable[[BaseFileLock], AbstractContextManager[Ba
tests/core/test_context_errors.py:191
Functiontest_context_body_only_failure_propagates_body
( tmp_path: Path, policy: ContextErrorPolicy, *, enter: Enter )
tests/async_lock/test_context_errors.py:120
Functiontest_context_cancellation_preserves_body_and_rollback_contexts
( lock_file: str, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/sqlite/test_async_release_cancellation.py:141
Functiontest_context_chain_does_not_duplicate_body_already_in_release_group
(tmp_path: Path)
tests/async_lock/test_release_cancellation.py:351
Functiontest_context_chain_keeps_release_error_with_body_in_context
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], *, enter
tests/core/test_context_errors.py:166
Functiontest_context_chain_keeps_release_error_with_body_in_context
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], *, enter
tests/async_lock/test_context_errors.py:93
Functiontest_context_decorator
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_lock.py:278
Functiontest_context_group_base_exception_leaf_is_base_group
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError] )
tests/core/test_context_errors.py:226
Functiontest_context_group_base_exception_leaf_is_base_group
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError] )
tests/async_lock/test_context_errors.py:159
Functiontest_context_group_detaches_equivalent_shared_exception_dag
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], )
tests/core/test_context_errors.py:79
Functiontest_context_group_detaches_release_context
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], *, enter
tests/core/test_context_errors.py:37
Functiontest_context_group_detaches_release_context
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], *, enter
tests/async_lock/test_context_errors.py:29
Functiontest_context_group_handles_deep_body_context
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], )
tests/core/test_context_errors.py:60
Functiontest_context_group_preserves_distinct_shared_exception_dag
( tmp_path: Path, close_failure: tuple[Callable[[int], None], OSError, RuntimeError], )
tests/core/test_context_errors.py:104
← previousnext →2,001–2,100 of 3,548, ranked by callers