Skip to content

Commit

Permalink
Fix integration tests again
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Jan 2, 2025
1 parent 6fe3e41 commit 58e81fd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def test_installs(
if platform.system() == "Windows":
# https://stackoverflow.com/a/64706392
env["SYSTEMROOT"] = os.environ["SYSTEMROOT"]
# Needed for getpass.getuser to work on Windows.
env["USERNAME"] = os.environ["USERNAME"]

with capsys.disabled():
Expand All @@ -120,11 +121,8 @@ def test_installs(
stderr=subprocess.PIPE,
)
assert code == 0
assert all(
[line.startswith(os.fspath(tmp_path)) for line in stdout.strip().split("\n")]
)

for index, path in enumerate(stdout.strip().split("\n")):
for path in stdout.strip().split("\n"):
assert path.startswith(
os.fspath(tmp_path)
), f"{path!r} does not start with {os.fspath(tmp_path)!r}"
Expand Down

0 comments on commit 58e81fd

Please sign in to comment.