Skip to content

Commit 4fb7418

Browse files
committed
Fix pythonpath check on Debian
1 parent 08d1ac2 commit 4fb7418

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spin/tests/test_build_cmds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ def test_debug_builds():
3434

3535
def test_expand_pythonpath():
3636
output = assert_cmd(["spin", "run", "echo $PYTHONPATH"])
37-
assert "site-packages" in stdout(
38-
output
39-
), f"Expected value of $PYTHONPATH, got {output} instead"
37+
assert any(
38+
p in stdout(output) for p in ("site-packages", "dist-packages")
39+
), f"Expected value of $PYTHONPATH, got {stdout(output)} instead"
4040

4141

4242
def test_run_stdout():

0 commit comments

Comments
 (0)