diff --git a/tests/scripts/test_hpkg_packages.py b/tests/scripts/test_hpkg_packages.py index c7909e1243..8e8716ab8a 100644 --- a/tests/scripts/test_hpkg_packages.py +++ b/tests/scripts/test_hpkg_packages.py @@ -183,10 +183,11 @@ def test_pack_probe_ignores_the_builders_pythonpath(tmp_path: Path, monkeypatch) def test_pack_fails_on_a_directory_it_cannot_list(tmp_path: Path, monkeypatch, unlisted_rel: str): """A listing error inside the package or its metadata fails the pack; it never ships an archive missing that subtree after removing the loose copy.""" + from pm.filesystem import long_root from scripts.bundles import hpkg_packages site = _make_baked_lark_site(tmp_path) - unlisted = site / unlisted_rel + unlisted = long_root(site) / unlisted_rel # the spelling the packer walks real_scandir = os.scandir refused: list[str] = []