← Về thư mục
tests/test_kernel_font_cache.py
- _isolated_font_cache_state · function · L39-L56 — def _isolated_font_cache_state(tmp_path, monkeypatch)
- _fontlist · function · L59-L71 — def _fontlist(version: object = "3.11.0", **extra) -> str
- _source_fields · function · L74-L78 — def _source_fields(source: Path) -> dict
- _raw_runner · function · L81-L92 — def _raw_runner(payload, *, calls: list | None = None)
- run · function · L82-L90 — def run(command, **kwargs)
- _builder_runner · function · L95-L106 — def _builder_runner(payload: dict | None = None, *, calls: list | None = None)
- body · function · L98-L104 — def body() -> dict
- _enforced_sandbox · function · L109-L130 — def _enforced_sandbox(tmp_path: Path, name: str = "kernel") -> KernelSandbox
- _kernel_mplconfigdir · function · L133-L134 — def _kernel_mplconfigdir(sandbox: KernelSandbox) -> Path
- test_an_enforced_kernel_is_seeded_with_the_host_built_font_list · function · L137-L156 — def test_an_enforced_kernel_is_seeded_with_the_host_built_font_list(tmp_path)
- test_a_font_list_a_kernel_wrote_never_reaches_another_kernel · function · L159-L196 — def test_a_font_list_a_kernel_wrote_never_reaches_another_kernel(tmp_path)
- test_builder_output_that_is_not_a_font_list_is_not_stored · function · L227-L238 — def test_builder_output_that_is_not_a_font_list_is_not_stored( tmp_path, monkeypatch, payload )
- test_a_matplotlib_before_3_11_list_is_stored_as_written_and_seeded · function · L241-L274 — def test_a_matplotlib_before_3_11_list_is_stored_as_written_and_seeded(tmp_path)
- test_a_list_whose_matplotlib_install_cannot_be_pinned_is_not_stored · function · L281-L306 — def test_a_list_whose_matplotlib_install_cannot_be_pinned_is_not_stored( tmp_path, monkeypatch, report )
- test_upgrading_matplotlib_rebuilds_instead_of_seeding_the_old_list · function · L309-L357 — def test_upgrading_matplotlib_rebuilds_instead_of_seeding_the_old_list(tmp_path)
- test_a_newly_installed_font_stops_the_stale_list_being_seeded · function · L360-L380 — def test_a_newly_installed_font_stops_the_stale_list_being_seeded( tmp_path, _isolated_font_cache_state )
- test_a_cache_inside_the_kernels_own_workspace_is_not_trusted · function · L383-L395 — def test_a_cache_inside_the_kernels_own_workspace_is_not_trusted(tmp_path)
- test_a_symlinked_cache_file_is_not_followed · function · L398-L415 — def test_a_symlinked_cache_file_is_not_followed(tmp_path)
- test_an_unconfined_kernel_keeps_its_shared_runtime_cache · function · L418-L436 — def test_an_unconfined_kernel_keeps_its_shared_runtime_cache(tmp_path)
- test_builds_only_start_where_enabled_and_run_once_at_a_time · function · L439-L471 — def test_builds_only_start_where_enabled_and_run_once_at_a_time(tmp_path)
- slow_builder · function · L446-L449 — def slow_builder(command, **kwargs)
- test_a_failed_build_is_not_retried_on_every_spawn · function · L474-L482 — def test_a_failed_build_is_not_retried_on_every_spawn(tmp_path)
- _slow_builder_interpreter · function · L494-L534 — def _slow_builder_interpreter(root: Path, report: Path) -> Path
- _pid_alive · function · L537-L544 — def _pid_alive(pid: int) -> bool
- _probe_temp · function · L548-L563 — def _probe_temp(tmp_path, monkeypatch)
- _StoppingDaemon · class · L566-L590 — class _StoppingDaemon
- init · method · L569-L574 — def init(self, interpreter: Path, data_dir: Path, ready) -> None
- serve_forever · method · L576-L584 — def serve_forever(self) -> None: # A sandboxed kernel spawn finds no font list (seed_kernel_font_cache)...
- shutdown · method · L586-L587 — def shutdown(self) -> None
- server_close · method · L589-L590 — def server_close(self) -> None
- _kill_leftover_builder · function · L593-L604 — def _kill_leftover_builder(report: Path) -> None
- _wait_for · function · L607-L613 — def _wait_for(predicate, timeout: float) -> bool
- test_stopping_the_daemon_stops_its_font_list_build · function · L616-L660 — def test_stopping_the_daemon_stops_its_font_list_build(tmp_path, _probe_temp)
- test_a_build_that_had_not_spawned_when_the_daemon_stopped_never_scans · function · L663-L710 — def test_a_build_that_had_not_spawned_when_the_daemon_stopped_never_scans( tmp_path, _probe_temp, monkeypatch )
- held_fingerprint · function · L680-L683 — def held_fingerprint(args, *kwargs)
- _fake_matplotlib · function · L713-L730 — def _fake_matplotlib(root: Path) -> Path
- test_the_builder_program_returns_the_list_matplotlib_wrote · function · L733-L771 — def test_the_builder_program_returns_the_list_matplotlib_wrote(tmp_path)
- runner · function · L745-L758 — def runner(command, *, timeout)
- _shadowing_directory · function · L774-L795 — def _shadowing_directory(root: Path) -> Path
- test_the_builder_program_never_imports_from_its_working_directory · function · L798-L827 — def test_the_builder_program_never_imports_from_its_working_directory(tmp_path)
- runner · function · L808-L821 — def runner(command, *, timeout)
- test_a_daemon_launched_from_a_poisoned_directory_stores_no_font_list · function · L830-L858 — def test_a_daemon_launched_from_a_poisoned_directory_stores_no_font_list( tmp_path, monkeypatch )
- test_a_python_kernel_asks_for_its_font_list_with_its_own_sandbox · function · L861-L872 — def test_a_python_kernel_asks_for_its_font_list_with_its_own_sandbox( tmp_path, monkeypatch )
- _font_manager_source · function · L875-L878 — def _font_manager_source() -> Path
- _parse_font_manager_version · function · L881-L896 — def _parse_font_manager_version(source: str) -> int | str | None
- test_the_end_to_end_test_reads_every_font_manager_version_spelling · function · L909-L919 — def test_the_end_to_end_test_reads_every_font_manager_version_spelling(line, expected)
- test_a_sandboxed_kernel_uses_the_seeded_list_instead_of_scanning · function · L922-L961 — def test_a_sandboxed_kernel_uses_the_seeded_list_instead_of_scanning( tmp_path, monkeypatch )