Skip to content

Commit

Permalink
Debugging github actions failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmoore committed Jul 29, 2022
1 parent d86bd42 commit dde2b17
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/functional/test_python_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,18 @@ 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', '<None>')); pprint.pprint(sys.path)",
)
print(r.stdout)
print(r.stderr)
result = script.pip("--python", env_path, "list", "--format=json")
assert json.loads(result.stdout) == []
script.pip(
Expand Down

0 comments on commit dde2b17

Please sign in to comment.