diff --git a/tests/commands/install_uninstall_test.py b/tests/commands/install_uninstall_test.py index 66b91903..7e037584 100644 --- a/tests/commands/install_uninstall_test.py +++ b/tests/commands/install_uninstall_test.py @@ -530,6 +530,8 @@ def test_installed_from_venv(tempdir_factory, store): 'GIT_COMMITTER_NAME': os.environ['GIT_COMMITTER_NAME'], 'GIT_AUTHOR_EMAIL': os.environ['GIT_AUTHOR_EMAIL'], 'GIT_COMMITTER_EMAIL': os.environ['GIT_COMMITTER_EMAIL'], + # Pass PYTHONPATH to support running tests using pytest-runner + 'PYTHONPATH': os.environ.get('PYTHONPATH', ''), }, ) assert ret == 0