[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-07-27 18:09:32 +00:00
commit 6ee7985e85

View file

@ -274,7 +274,9 @@ def test_a_record_without_its_package_is_reported_missing(monkeypatch, capsys, t
locate_file = lambda name: site_packages / name,
)
monkeypatch.setattr(
importlib.import_module("importlib.metadata"), "distribution", lambda _name: installed,
importlib.import_module("importlib.metadata"),
"distribution",
lambda _name: installed,
)
with pytest.raises(typer.Exit):