(tmpdir)
| 56 | |
| 57 | |
| 58 | def test_find_python_sibling(tmpdir): |
| 59 | # type: (Any) -> None |
| 60 | |
| 61 | bin_dir = os.path.join(str(tmpdir), "bin") |
| 62 | python = os.path.join(bin_dir, "python") |
| 63 | touch(python) |
| 64 | with open(os.path.join(bin_dir, "pyvenv.cfg"), "w") as fp: |
| 65 | fp.write("home = foo") |
| 66 | cfg = PyVenvCfg.find(python) |
| 67 | assert cfg is not None |
| 68 | assert "foo" == cfg.home |
| 69 | |
| 70 | |
| 71 | def test_find_venv_sibling(tmpdir): |