From cd2cbd4e1ad664cbc4b54ed50e0da41b65016b38 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Wed, 20 Feb 2019 18:20:51 -0500 Subject: [PATCH] Avoid using `which` in cross platform tests Signed-off-by: Dan Ryan --- tests/integration/test_project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_project.py b/tests/integration/test_project.py index c3eb4096..d193fc7d 100644 --- a/tests/integration/test_project.py +++ b/tests/integration/test_project.py @@ -171,7 +171,7 @@ def test_include_editable_packages(PipenvInstance, pypi, testsroot, pathlib_tmpd @pytest.mark.virtualenv def test_run_in_virtualenv_with_global_context(PipenvInstance, pypi, virtualenv): with PipenvInstance(chdir=True, pypi=pypi, venv_root=virtualenv.as_posix(), ignore_virtualenvs=False, venv_in_project=False) as p: - c = p.pipenv('run which pip') + c = p.pipenv('run pip freeze') assert c.return_code == 0 assert 'Creating a virtualenv' not in c.err project = Project() @@ -193,7 +193,7 @@ def test_run_in_virtualenv_with_global_context(PipenvInstance, pypi, virtualenv) @pytest.mark.virtualenv def test_run_in_virtualenv(PipenvInstance, pypi): with PipenvInstance(chdir=True, pypi=pypi) as p: - c = p.pipenv('run which pip') + c = p.pipenv('run pip freeze') assert c.return_code == 0 assert 'Creating a virtualenv' in c.err project = Project()