Skip to content

Commit

Permalink
test: Fix integration tests on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jul 16, 2024
1 parent 252360e commit 76f3144
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,11 @@ def test_integration_install(tmp_path, buildsys, verify_zipfile_cleanup,

sitedir = destdir / (sysconfig.get_path("purelib", vars={"base": "/usr"})
.lstrip(os.path.sep))
scriptdir = destdir / (sysconfig.get_path("scripts", vars={"base": "/usr"})
.lstrip(os.path.sep))
exe_suffix = ".exe" if os.name == "nt" else ""
assert all(dict((x, os.path.exists(x)) for x in
[f"{destdir}/usr/bin/newscript",
[f"{scriptdir}/newscript{exe_suffix}",
f"{sitedir}/testpkg/__init__.py",
f"{sitedir}/testpkg/datafile.txt",
]).values())
Expand Down

0 comments on commit 76f3144

Please sign in to comment.