MCPcopy Create free account

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

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

Functiontest_lock_descriptor_blocking_wait_does_not_spin
(tmp_path: Path)
tests/native/test_descriptor.py:205
Functiontest_lock_descriptor_invalid_fd_raises
(tmp_path: Path)
tests/native/test_descriptor.py:68
Functiontest_lock_descriptor_nonblocking_contention
(tmp_path: Path)
tests/native/test_descriptor.py:53
Functiontest_lock_descriptor_nonblocking_ignores_poll_interval
(tmp_path: Path, poll_interval: float)
tests/native/test_descriptor.py:102
Functiontest_lock_descriptor_rejects_invalid_blocking_poll_interval
(poll_interval: float)
tests/native/test_descriptor.py:93
Functiontest_lock_descriptor_rejects_non_bool_blocking
(blocking: str | int)
tests/native/test_descriptor.py:78
Functiontest_lock_descriptor_rejects_non_number_blocking_poll_interval
(poll_interval: bool | str)
tests/native/test_descriptor.py:84
Functiontest_lock_descriptor_roundtrip
(tmp_path: Path)
tests/native/test_descriptor.py:41
Functiontest_lock_descriptor_touches_no_paths
(tmp_path: Path)
tests/native/test_descriptor.py:141
Functiontest_lock_excludes_opposite_mode
( lock_file: str, holder_mode: Literal["read", "write"], contender_mode: Literal["read", "write"],
tests/sqlite/test_lock_contention.py:98
Functiontest_lock_file_in_a_missing_directory_is_created
(tmp_path: Path)
tests/soft/read_write/test_lock.py:144
Functiontest_lock_file_it_cannot_write_stays_denied_where_flock_works
(tmp_path: Path)
tests/native/test_unix_open.py:35
Functiontest_lock_file_missing_during_expiry_check
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:190
Functiontest_lock_file_of_another_account_under_sticky_parent_is_refused
( # pragma: needs foreign-sticky-tmp lock_path_in_shared_tmp: Path, )
tests/native/test_unix.py:99
Functiontest_lock_file_removed_after_release
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/native/test_file_identity.py:42
Functiontest_lock_file_unlinked_under_a_denied_open_is_retried
(tmp_path: Path)
tests/native/test_unix_open.py:95
Functiontest_lock_finalized_at_exit_skips_fork_bookkeeping_a_frozen_daemon_thread_holds
(tmp_path: Path, held: str)
tests/core/test_fork_shutdown.py:23
Functiontest_lock_held_at_exit_is_released_silently
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_shutdown.py:65
Functiontest_lock_mode
(tmp_path: Path)
tests/native/test_unix_modes.py:25
Functiontest_lock_mode_soft_lets_only_the_owner_write_the_marker
( # pragma: needs file-mode make_lock: Callable[[str], SoftFileLock], umask: int, tmp_path: Path )
tests/soft/exclusive/test_marker_ownership.py:41
Functiontest_lock_mode_transition_prohibited
(lock_file: str, hold_mode: Literal["read", "write"])
tests/sqlite/test_lock.py:87
Functiontest_lock_mtime_updated_on_acquire
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:229
Functiontest_lock_release_on_process_termination
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_lock.py:210
Functiontest_lock_uses_instance_defaults
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_transactions.py:131
Functiontest_lock_with_a_non_decimal_number_names_no_holder
(lock_path: Path, content: str)
tests/soft/exclusive/test_recovery.py:294
Functiontest_lock_with_mapped_overflow_uid
( # pragma: win32 no cover # pragma: darwin no cover lock_type: type[BaseFileLock], sticky_dir_with_mapp
tests/native/test_unix.py:194
Functiontest_lock_writes_pid_and_hostname
(lock_path: Path, expected_lines: list[str])
tests/soft/exclusive/test_publication.py:48
Functiontest_locks_alive_at_shutdown_finalize_silently
(tmp_path: Path)
tests/sqlite/test_connection.py:112
Functiontest_log_callback_can_release_while_shared_observer_owns_gate
( lock_path: Path, caplog: pytest.LogCaptureFixture, message: str, claims: int )
tests/soft/strict/test_release_observers.py:175
Functiontest_log_starts_empty
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_generations.py:59
Functiontest_main_thread_receives_interrupt_while_waiting_for_release
(lock_path: Path, observers: str)
tests/soft/strict/test_release_interruption.py:196
Functiontest_malformed_generation_raises
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_generations.py:127
Functiontest_malformed_generation_record_fails_closed
(lock_file: str, lock: SoftReadWriteLock)
tests/soft/read_write/test_lock_recovery.py:102
Functiontest_malformed_holder_record_is_evicted
(lock_file: str)
tests/soft/read_write/test_lock_recovery.py:225
Functiontest_malformed_snapshots_parse_to_none
(data: bytes)
tests/soft/read_write/test_generations.py:55
Functiontest_many_waiting_writers_drain_after_reader_releases
(lock_file: str)
tests/sqlite/test_async_contention.py:123
Functiontest_marker_cleanup_denied_closes_its_handles
(lock_path: Path, mocker: MockerFixture, denied_open: int)
tests/soft/exclusive/test_publication.py:105
Functiontest_marker_cleanup_failure_keeps_the_lock_held_for_a_retry
( # pragma: win32 no cover lock_path: Path, mocker: MockerFixture, cleanup_error: Exception )
tests/soft/exclusive/test_publication_cleanup.py:102
Functiontest_marker_create_reports_a_removed_directory
(tmp_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_publication.py:70
Functiontest_marker_force_break_removes_the_marker
(tmp_path: Path)
tests/soft/exclusive/test_marker.py:128
Functiontest_marker_is_lock_held_by_us_checks_start
(marker: Path, offset: int, *, expected: bool)
tests/soft/exclusive/test_marker.py:119
Functiontest_marker_lock_excludes_contenders
(marker: Path, contender_type: type[MarkerSoftFileLock])
tests/soft/exclusive/test_marker.py:158
Functiontest_marker_lock_preserves_live_records
(marker: Path, mode: str)
tests/soft/exclusive/test_marker.py:173
Functiontest_marker_lock_publishes_exclusive
( marker: Path, enter: Callable[[MarkerSoftFileLock], AbstractContextManager[MarkerSoftFileLock]] )
tests/soft/exclusive/test_marker.py:143
Functiontest_marker_lock_reclaims_dead_owner
(marker: Path)
tests/soft/exclusive/test_marker.py:184
Functiontest_marker_lock_reclaims_dead_owner_before_its_process_is_closed
(marker: Path)
tests/soft/exclusive/test_marker.py:205
Functiontest_marker_lock_reclaims_malformed_record
(marker: Path, record: str, mocker: MockerFixture)
tests/soft/exclusive/test_marker.py:225
Functiontest_marker_pid_and_owner_are_none_without_marker
(tmp_path: Path)
tests/soft/exclusive/test_marker.py:109
Functiontest_marker_unlink_refused_while_open_is_retried_after_the_close
( # pragma: win32 no cover lock_path: Path, mocker: MockerFixture )
tests/soft/exclusive/test_publication_cleanup.py:200
Functiontest_marker_unlink_retried_after_the_close_spares_a_successor
( # pragma: win32 no cover lock_path: Path, mocker: MockerFixture )
tests/soft/exclusive/test_publication_cleanup.py:221
Functiontest_marker_without_start_token_omits_it
(tmp_path: Path, mocker: MockerFixture)
tests/soft/exclusive/test_marker.py:38
Functiontest_meta_raises_when_pid_changes_during_singleton_construction
(lock_file: str, mocker: MockerFixture)
tests/sqlite/test_lock_settings.py:169
Functiontest_meta_resets_class_state_after_pid_change
(lock_file: str)
tests/sqlite/test_lock_settings.py:156
Functiontest_missing_directory_while_staging_head_stays_removed
( lock_file: str, files: OsFiles, root: str, mocker: MockerFixture )
tests/soft/read_write/test_generations_publication.py:267
Functiontest_missing_generation_directory_before_staging
( lock_file: str, lock: SoftReadWriteLock, mocker: MockerFixture )
tests/soft/read_write/test_lock_recovery.py:180
Functiontest_missing_path_returns_default
( tmp_path: Path, call: Callable[[OsFiles, str], bytes | bool | list[str] | None], expected: bytes
tests/soft/read_write/test_storage.py:35
Functiontest_mode_change_prohibited
( lock_file: str, held: Literal["read", "write"], requested: Literal["read", "write"], match:
tests/sqlite/test_async.py:111
Functiontest_mode_is_read_only
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_singleton.py:60
Functiontest_mode_of_wrong_type_raises
(mode: str | bool, tmp_path: Path)
tests/core/test_settings.py:216
Functiontest_mode_outside_permission_bits_raises
(lock_type: type[BaseFileLock], mode: int, tmp_path: Path)
tests/core/test_settings.py:210
Functiontest_mode_property
(lock_type: type[BaseFileLock], mode: int, expected: int, tmp_path: Path)
tests/core/test_settings.py:27
Functiontest_mode_without_owner_read_write_raises
(lock_type: type[BaseFileLock], mode: int, tmp_path: Path)
tests/core/test_settings.py:194
Functiontest_model_janitor_clears_every_crashed_holder
(seed: int)
tests/soft/read_write/test_participant_model.py:337
Functiontest_model_never_overlaps_and_always_progresses
(seed: int, crash_probability: float, stale_listings: float)
tests/soft/read_write/test_participant_model.py:53
Functiontest_moved_shared_singleton_still_reports_owner
( working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:255
Functiontest_multiple_readers_can_hold_simultaneously
(lock_file: str)
tests/soft/read_write/test_lock_contention.py:60
Functiontest_named_probe_is_unlinked_before_flock
(tmp_path: Path, mocker: MockerFixture)
tests/native/test_unix_probe.py:60
Functiontest_narrow_async_subclass_rejects_non_default_option
( option: Literal["thread_local", "loop", "run_in_executor", "executor"], tmp_path: Path, )
tests/core/test_subclass_options.py:90
Functiontest_narrow_subclass_accepts_explicit_base_defaults
( kind: Literal["sync", "async"], tmp_path: Path, )
tests/core/test_subclass_options.py:140
Functiontest_narrow_subclass_accepts_named_option
(tmp_path: Path)
tests/core/test_subclass_options.py:185
Functiontest_narrow_sync_subclass_rejects_non_default_option
( option: str, value: float | str | Callable[[int], None], tmp_path: Path, )
tests/core/test_subclass_options.py:39
Functiontest_narrow_sync_subclass_rejects_unknown_option
(tmp_path: Path)
tests/core/test_subclass_options.py:68
Functiontest_native_break_lock_does_not_remove_file
(tmp_path: Path)
tests/native/test_unix_fallback.py:268
Functiontest_native_descriptor_is_visible_during_flock_audit
( tmp_path: Path, fork_mode: Literal["rejected-audit", "fork1"] )
tests/core/test_fork_audit.py:158
Functiontest_native_file_works_when_directory_denies_a_probe
( # pragma: needs fcntl tmp_path: Path, make_lock: Callable[[Path], UnixFileLock], held_mode: int, restri
tests/native/test_unix_probe.py:289
Functiontest_native_lifetime_does_not_break_live_holder
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:49
Functiontest_native_lifetime_setter_warns_and_is_ignored
(tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:42
Functiontest_native_lifetime_warning_identifies_caller
( lock_type: type[UnixFileLock | AsyncUnixFileLock | WindowsFileLock | AsyncWindowsFileLock], tmp_path
tests/soft/exclusive/test_lock_lifetime.py:119
Functiontest_native_lifetime_warns_and_is_ignored
(lock_type: type[FileLock | AsyncFileLock], tmp_path: Path)
tests/soft/exclusive/test_recovery_expiry.py:36
Functiontest_native_lock_rejects_a_lease_duration
(marker: Path)
tests/soft/test_lease_settings.py:118
Functiontest_native_path_has_no_soft_holder
(tmp_path: Path, name: str)
tests/native/test_unix_fallback.py:364
Functiontest_nested_acquire
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_lock.py:200
Functiontest_nested_acquire_without_working_directory_preserves_hold
( lock_type: type[BaseFileLock], working_directories: tuple[Path, Path], monkeypatch: pytest.MonkeyPatch )
tests/core/test_relative_paths.py:194
Functiontest_nested_context_manager
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_lock.py:179
Functiontest_nested_context_managers
(lock_file: str, mode: Literal["read", "write"])
tests/sqlite/test_async.py:200
Functiontest_nested_contruct
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_lock.py:236
Functiontest_nested_forced_release
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_lock.py:221
Functiontest_nested_read_context_managers
(lock_file: str)
tests/sqlite/test_transactions.py:267
Functiontest_nested_write_context_managers
(lock_file: str)
tests/sqlite/test_transactions.py:280
Functiontest_non_ascii_digit_generation_name_is_ignored
(lock_file: str, files: OsFiles, root: str)
tests/soft/read_write/test_generations.py:136
Functiontest_non_blocking
(lock_type: type[BaseFileLock], tmp_path: Path)
tests/core/test_timeout.py:47
Functiontest_non_blocking
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/async_lock/test_lock.py:56
Functiontest_non_blocking_acquire_ignores_nan_timeout
(lock_type: type[BaseFileLock], nan: float, tmp_path: Path)
tests/core/test_timeout_validation.py:139
Functiontest_non_blocking_acquire_ignores_nan_timeout
(lock_type: type[BaseAsyncFileLock], tmp_path: Path)
tests/async_lock/test_owners.py:66
Functiontest_non_blocking_acquire_still_rejects_a_bool_timeout
(tmp_path: Path)
tests/core/test_timeout_validation.py:88
Functiontest_non_blocking_behavior
(lock_file: str)
tests/sqlite/test_lock.py:139
Functiontest_non_blocking_conflict
( lock_file: str, mode: Literal["read", "write"], held: Literal["read", "write"] )
tests/sqlite/test_async.py:133
Functiontest_non_blocking_gives_timeout_not_deadlock
(tmp_path: Path, lock_type: type[BaseFileLock])
tests/core/test_registry.py:56
Functiontest_non_blocking_gives_timeout_not_deadlock
(tmp_path: Path, lock_type: type[BaseAsyncFileLock])
tests/async_lock/test_owners.py:85
Functiontest_non_blocking_read_fails_when_write_held
(lock_file: str)
tests/sqlite/test_transactions.py:207
← previousnext →2,501–2,600 of 3,548, ranked by callers