test(bundles): fault the listing at the path the packer walks
The packer walks long_root(site), which on Windows is the \\?\ spelling, so the listing-failure test's comparison with the plain tmp_path missed there and both cases would report DID NOT RAISE. Build the faulted path with long_root() too; it is the same path on POSIX.
This commit is contained in:
committed by
Bear Huddleston
parent
0e2f391fc3
commit
cfecf78752
@@ -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] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user