diff --git a/tests/functional/test_python_option.py b/tests/functional/test_python_option.py index 4fafde2a8b2..596d509a05d 100644 --- a/tests/functional/test_python_option.py +++ b/tests/functional/test_python_option.py @@ -14,7 +14,17 @@ def test_python_interpreter( env_path = os.fsdecode(tmpdir / "venv") env = EnvBuilder(with_pip=False) env.create(env_path) - + for f in (tmpdir / "venv").rglob("*"): + print(f) + print((tmpdir / "venv/pyvenv.cfg").read_text()) + r = script.run( + str(tmpdir / "venv" / "bin" / "python"), + "-v", + "-c", + "import sys, os, pprint; " + "print(os.environ.get('PYTHONPATH', '')); pprint.pprint(sys.path)", + ) + print(r.stdout) result = script.pip("--python", env_path, "list", "--format=json") assert json.loads(result.stdout) == [] script.pip(