diff --git a/tests/integration/test_project.py b/tests/integration/test_project.py index bef9912f..ce5ab380 100644 --- a/tests/integration/test_project.py +++ b/tests/integration/test_project.py @@ -8,7 +8,7 @@ import pytest from pipenv.patched import pipfile from pipenv.project import Project -from pipenv.utils import temp_environ +from pipenv.utils import temp_environ, normalize_path from pipenv.vendor.vistir.path import is_in_path from pipenv.vendor.delegator import run as delegator_run @@ -221,7 +221,9 @@ def test_run_in_virtualenv(PipenvInstance): assert c.return_code == 0 c = p.pipenv('run python -c "import click;print(click.__file__)"') assert c.return_code == 0 - assert c.out.strip().startswith(str(project.virtualenv_location)) + assert normalize_path(c.out.strip()).startswith( + normalize_path(str(project.virtualenv_location)) + ) c = p.pipenv("clean --dry-run") assert c.return_code == 0 assert "click" in c.out