MCPcopy Create free account

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

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

Functiontest_acquire_release_write
(lock_file: str)
tests/sqlite/test_transactions.py:32
Functiontest_acquire_repeated_cancellation_waits_for_rollback
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_acquire_cancellation.py:346
Functiontest_acquire_respects_settings
( sync_locks: tuple[ReadWriteLock, ReadWriteLock], mode: Literal["read", "write"], instance_timeou
tests/sqlite/test_transactions_settings.py:28
Functiontest_acquire_return_proxy_context_manager
(lock_file: str)
tests/sqlite/test_async.py:188
Functiontest_acquire_valid_timeout_preserves_nested_hold
( timeout_locks: tuple[ReadWriteLock | SoftReadWriteLock, ReadWriteLock | SoftReadWriteLock], mode: Li
tests/sqlite/test_transactions_settings.py:186
Functiontest_acquire_without_arguments_uses_instance_settings
( sync_locks: tuple[ReadWriteLock, ReadWriteLock], mode: Literal["read", "write"], instance_timeou
tests/sqlite/test_transactions_settings.py:57
Functiontest_acquire_without_working_directory_leaves_no_hold
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:174
Functiontest_acquires_giving_up_behind_a_waiter_leave_the_lock_releasable
(tmp_path: Path)
tests/async_lock/test_admission.py:128
Functiontest_acquisition_and_registration_errors_are_grouped
( tmp_path: Path, mocker: MockerFixture, *, fail_release: bool, expected: list[tuple[type[
tests/core/test_fork_backends.py:152
Functiontest_acquisition_callback_cannot_start_a_release
(lock_path: Path, caplog: pytest.LogCaptureFixture)
tests/soft/strict/test_release_interruption.py:151
Functiontest_acquisition_failure_keeps_descriptor_registered_until_rollback
(tmp_path: Path)
tests/core/test_fork_backends.py:112
Functiontest_advance_hands_back_the_poll_after_losing_every_race
( lock_file: str, files: OsFiles, mocker: MockerFixture )
tests/soft/read_write/test_participant.py:259
Functiontest_an_empty_listing_past_compaction_still_finds_the_head_by_name
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_head.py:60
Functiontest_an_empty_listing_past_compaction_still_finds_the_remembered_head
( lock_file: str, files: OsFiles, root: str, head: Path, mocker: MockerFixture )
tests/soft/read_write/test_generations_head.py:49
Functiontest_an_empty_log_reads_as_empty_again
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_generations.py:93
Functiontest_an_epoch_a_peer_created_first_is_adopted
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations.py:69
Functiontest_an_overfull_generation_list_collects_temporary_files
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_sweep.py:78
Functiontest_another_instance_on_the_database_keeps_the_held_lock
( tmp_path: Path, held_mode: Literal["read", "write"], open_other: Callable[[Path], ReadWriteLock] )
tests/sqlite/test_connection.py:55
Functiontest_another_task_waits_for_the_last_release_of_a_nested_write
(lock_file: str)
tests/sqlite/test_async_contention.py:74
Functiontest_append_exception_context_terminates_on_a_cycle
()
tests/core/test_context_errors.py:405
Functiontest_async_acquire_accepts_infinite_timeout
(tmp_path: Path, mode: Literal["read", "write"])
tests/soft/read_write/test_async.py:148
Functiontest_async_acquire_accepts_infinite_timeout
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_async_settings.py:191
Functiontest_async_acquire_behind_a_sync_acquire_of_the_same_instance_honors_the_callers_deadline
( tmp_path: Path, make: _Make )
tests/async_lock/test_read_write_wait.py:163
Functiontest_async_acquire_behind_a_sync_acquire_of_the_same_instance_times_out_at_its_own_deadline
( tmp_path: Path, make: _Make, mocker: MockerFixture )
tests/async_lock/test_read_write_wait.py:192
Functiontest_async_acquire_behind_another_process_honors_the_callers_deadline
( tmp_path: Path, make: _Make, mode: Literal["read", "write"], timeout: float )
tests/async_lock/test_read_write_wait.py:82
Functiontest_async_acquire_cancellation_hands_the_claim_back
( tmp_path: Path, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/soft/read_write/test_async_cancellation.py:28
Functiontest_async_acquire_cancellation_surfaces_a_failed_acquire
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async_cancellation.py:54
Functiontest_async_acquire_cancellation_surfaces_a_failed_release
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async_cancellation.py:75
Functiontest_async_acquire_keeps_its_hold_when_close_fails
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_async_close.py:107
Functiontest_async_acquire_oplocked_database_honors_caller_deadline
( tmp_path: Path, hold_oplock: Callable[[Path], Callable[[], None]] )
tests/async_lock/test_read_write_wait.py:112
Functiontest_async_acquire_rejects_a_blocking_that_is_not_a_bool
( lock_file: str, mode: Literal["read", "write"], blocking: str | int )
tests/sqlite/test_async_settings.py:139
Functiontest_async_acquire_rejects_invalid_timeout
( tmp_path: Path, mode: Literal["read", "write"], timeout: float, message: str, form: Call
tests/soft/read_write/test_async.py:96
Functiontest_async_acquire_respects_settings
( async_locks: tuple[AsyncReadWriteLock, AsyncReadWriteLock], mode: Literal["read", "write"], call
tests/sqlite/test_async_settings.py:33
Functiontest_async_acquire_waiting_in_backend_during_close_is_refused
( lock_file: str, is_singleton: bool, mode: Literal["read", "write"], mocker: MockerFixture )
tests/sqlite/test_async_close.py:76
Functiontest_async_acquire_without_arguments_uses_instance_settings
( async_locks: tuple[AsyncReadWriteLock, AsyncReadWriteLock], mode: Literal["read", "write"], mini
tests/sqlite/test_async_settings.py:60
Functiontest_async_call_timeout_rejects_invalid_value
( lock_file: str, mode: Literal["read", "write"], timeout: float, message: str )
tests/sqlite/test_async_settings.py:92
Functiontest_async_cancelled_acquire_after_failed_close_reconciles_hold
( lock_file: str, mocker: MockerFixture, release_error: OSError | None, expected_error: type[B
tests/sqlite/test_async_close.py:155
Functiontest_async_cancelled_acquire_during_close_leaves_no_hold
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_async_close.py:206
Functiontest_async_child_release_preserves_parent_lock
( tmp_path: Path, async_lock_type: type[BaseAsyncFileLock], sync_lock_type: type[BaseFileLock], )
tests/core/test_fork_ownership.py:77
Functiontest_async_close_after_a_sync_end_of_the_shared_singleton_returns
( lock_file: str, sync_end: Callable[[ReadWriteLock], object] )
tests/sqlite/test_async_singletons.py:51
Functiontest_async_close_after_default_executor_shutdown
(tmp_path: Path)
tests/soft/read_write/test_async_executor.py:61
Functiontest_async_close_cancellation_drains_the_close
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async_cancellation.py:146
Functiontest_async_close_cancellation_surfaces_a_failed_close
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async_cancellation.py:163
Functiontest_async_close_keeps_a_sync_reader_of_the_shared_singleton
(lock_file: str)
tests/sqlite/test_async_singletons.py:256
Functiontest_async_close_keeps_the_hold_taken_through_another_wrapper
( lock_file: str, mode: Literal["read", "write"] )
tests/sqlite/test_async_singletons.py:171
Functiontest_async_close_of_a_singleton_wrapper_ends_the_holds_taken_through_it
(lock_file: str)
tests/sqlite/test_async_singletons.py:267
Functiontest_async_close_of_the_entering_wrapper_keeps_a_level_taken_through_another
(lock_file: str)
tests/sqlite/test_async_singletons.py:186
Functiontest_async_close_of_the_nested_wrapper_ends_only_its_own_level
(lock_file: str)
tests/sqlite/test_async_singletons.py:200
Functiontest_async_close_of_waiting_writer_unblocks_other_readers
(lock_file: str)
tests/sqlite/test_async_close.py:290
Functiontest_async_close_that_fails_before_any_acquire_leaves_the_wrapper_closed
( lock_file: str, mocker: MockerFixture )
tests/sqlite/test_async_close.py:337
Functiontest_async_close_waits_out_an_acquire_in_flight_even_when_canceled
(lock_file: str)
tests/sqlite/test_async_close.py:32
Functiontest_async_close_wakes_its_table_waiter
( lock_file: str, held_mode: Literal["read", "write"], waiting_mode: Literal["read", "write"] )
tests/sqlite/test_async_close.py:248
Functiontest_async_contended_acquire_rejects_invalid_timeout
( lock_file: str, mode: Literal["read", "write"], timeout: float, message: str )
tests/sqlite/test_async_settings.py:107
Functiontest_async_contended_instance_timeout_rejects_invalid_value
( lock_file: str, mode: Literal["read", "write"], timeout: float, message: str )
tests/sqlite/test_async_settings.py:123
Functiontest_async_contention_backs_off_across_a_widening_window
(tmp_path: Path, mocker: MockerFixture)
tests/soft/strict/test_lock.py:448
Functiontest_async_contention_reports_public_path
(lock_file: str, mode: Literal["read", "write"])
tests/soft/read_write/test_lock_contention.py:318
Functiontest_async_context_classes_are_exported
()
tests/test_asyncio.py:10
Functiontest_async_custom_loop_and_executor
(tmp_path: Path)
tests/soft/read_write/test_async_executor.py:27
Functiontest_async_default_executor_wait_does_not_block_another_release
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async_executor.py:75
Functiontest_async_del_hands_the_singleton_slot_to_a_new_lock
(tmp_path: Path, schedule: MockType)
tests/async_lock/test_finalization.py:198
Functiontest_async_del_inside_a_running_loop_falls_back_when_the_release_does_not_finish
( tmp_path: Path, schedule: MockType, stop: Callable[[MockType, ThreadPoolExecutor], object] )
tests/async_lock/test_finalization.py:134
Functiontest_async_del_inside_a_running_loop_schedules_release
(tmp_path: Path, schedule: MockType)
tests/async_lock/test_finalization.py:116
Functiontest_async_del_never_waits_on_the_singleton_cache_lock
(tmp_path: Path, schedule: MockType)
tests/async_lock/test_finalization.py:153
Functiontest_async_del_schedules_release_on_a_stored_loop_in_another_thread
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_finalization.py:96
Functiontest_async_del_without_any_loop_releases_a_sync_backend
(tmp_path: Path)
tests/async_lock/test_finalization.py:87
Functiontest_async_del_without_any_loop_returns
(tmp_path: Path, mocker: MockerFixture)
tests/async_lock/test_finalization.py:72
Functiontest_async_expired_lock_is_broken
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:210
Functiontest_async_exposes_configuration
(tmp_path: Path)
tests/soft/read_write/test_async.py:43
Functiontest_async_failed_close_keeps_pending_acquire_waiting
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_async_close.py:313
Functiontest_async_file_lock_subclasses_file_lock
()
tests/test_asyncio.py:14
Functiontest_async_forced_release_through_a_wrapper_without_a_level_releases_nothing
(lock_file: str)
tests/sqlite/test_async_singletons.py:228
Functiontest_async_hold_refuses_a_sync_release_on_the_entering_worker
( tmp_path: Path, worker: ThreadPoolExecutor, make: Callable[ [Path, ThreadPoolExecutor],
tests/async_lock/test_read_write.py:67
Functiontest_async_instance_timeout_rejects_invalid_value
( lock_file: str, mode: Literal["read", "write"], timeout: float, message: str )
tests/sqlite/test_async_settings.py:77
Functiontest_async_leaked_singleton_is_closed_on_teardown
(tmp_path: Path)
tests/soft/read_write/test_async.py:189
Functiontest_async_lease_heartbeat_keeps_a_live_claim
(marker: Path)
tests/async_lock/test_backends.py:51
Functiontest_async_lease_refuses_a_task_joining_a_lost_claim
(marker: Path, mocker: MockerFixture)
tests/async_lock/test_backends.py:91
Functiontest_async_lease_reports_compromise_when_the_marker_vanishes
(marker: Path)
tests/async_lock/test_backends.py:67
Functiontest_async_lock_context_manager
(tmp_path: Path, mode: Literal["read", "write"])
tests/soft/read_write/test_async.py:32
Functiontest_async_lock_on_a_daemon_loop_thread_held_at_interpreter_exit_releases_its_marker
( tmp_path: Path, thread_local: bool )
tests/async_lock/test_finalization.py:246
Functiontest_async_nonblocking_call_ignores_invalid_timeout
( lock_file: str, mode: Literal["read", "write"], timeout: float )
tests/sqlite/test_async_settings.py:176
Functiontest_async_nonblocking_ignores_invalid_timeout
( tmp_path: Path, mode: Literal["read", "write"], timeout: float, form: Callable[[float], tupl
tests/soft/read_write/test_async.py:129
Functiontest_async_nonblocking_instance_ignores_invalid_timeout
( lock_file: str, mode: Literal["read", "write"], timeout: float )
tests/sqlite/test_async_settings.py:157
Functiontest_async_owned_executor_stops_after_close
(tmp_path: Path)
tests/soft/read_write/test_async_executor.py:42
Functiontest_async_raw_acquire_release_round_trip
(tmp_path: Path)
tests/soft/read_write/test_async.py:58
Functiontest_async_read_after_a_sync_close_of_the_shared_singleton_raises
(lock_file: str)
tests/sqlite/test_async_singletons.py:31
Functiontest_async_read_after_a_sync_forced_release_takes_the_lock_again
(lock_file: str)
tests/sqlite/test_async_singletons.py:76
Functiontest_async_read_after_an_interrupted_sync_forced_release_takes_the_lock_again
( lock_file: str, mocker: MockerFixture, sync_end: Callable[[ReadWriteLock], object] )
tests/sqlite/test_async_singletons.py:100
Functiontest_async_read_arriving_during_close_is_refused
(lock_file: str, is_singleton: bool)
tests/sqlite/test_async_singletons.py:146
Functiontest_async_read_through_another_wrapper_during_close_holds_the_lock
(lock_file: str)
tests/sqlite/test_async_singletons.py:158
Functiontest_async_read_treats_a_level_whose_connection_closed_meanwhile_as_gone
( lock_file: str, mocker: MockerFixture )
tests/sqlite/test_async_singletons.py:119
Functiontest_async_read_write_lock_allows_finalizer_reentry
(tmp_path: Path)
tests/sqlite/test_lock_reentry.py:24
Functiontest_async_read_write_lock_fork_behavior
(tmp_path: Path, state: Literal["idle", "held"])
tests/sqlite/test_fork.py:236
Functiontest_async_reads_giving_up_behind_a_writer_leave_nothing_behind
(lock_file: str)
tests/sqlite/test_async_contention.py:246
Functiontest_async_relative_release_uses_acquisition_directory
( working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/async_lock/test_paths.py:53
Functiontest_async_relative_waiter_keeps_acquisition_directory
( lock_type: type[BaseAsyncFileLock], working_directories: tuple[Path, Path] )
tests/async_lock/test_paths.py:27
Functiontest_async_release_after_a_sync_forced_release_raises_not_held_by_this_task
(lock_file: str)
tests/sqlite/test_async_singletons.py:65
Functiontest_async_release_and_close_skip_when_pid_differs
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async.py:172
Functiontest_async_release_cancellation_drains_the_release
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async_cancellation.py:95
Functiontest_async_release_cancellation_hands_the_lock_to_the_next_task
( tmp_path: Path, mocker: MockerFixture, mode: Literal["read", "write"] )
tests/soft/read_write/test_async_cancellation.py:121
Functiontest_async_release_cancellation_surfaces_a_failed_release
(tmp_path: Path, mocker: MockerFixture)
tests/soft/read_write/test_async_cancellation.py:185
← previousnext →1,801–1,900 of 3,548, ranked by callers