Skip to content

Commit

Permalink
re-add pyvenv.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Apr 23, 2024
1 parent e604c2e commit 85b837d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/discovery/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def test_discovery_via_path_specific(
target.mkdir(parents=True)
executable = target / exe_name
os.symlink(sys.executable, str(executable))
pyvenv_cfg = Path(sys.executable).parents[1] / "pyvenv.cfg"
if pyvenv_cfg.exists():
(target / pyvenv_cfg.name).write_bytes(pyvenv_cfg.read_bytes())
monkeypatch.setenv("PATH", str(target))
interpreter = get_interpreter(spec, [])

Expand Down

0 comments on commit 85b837d

Please sign in to comment.