(tmpdir)
| 350 | |
| 351 | @pytest.mark.skipif(WINDOWS, reason="No symlinks on windows") |
| 352 | def test_pex_python_symlink(tmpdir): |
| 353 | # type: (Any) -> None |
| 354 | symlink_path = os.path.join(str(tmpdir), "python-symlink") |
| 355 | safe_symlink(sys.executable, symlink_path) |
| 356 | pexrc_path = os.path.join(str(tmpdir), ".pexrc") |
| 357 | with open(pexrc_path, "w") as pexrc: |
| 358 | pexrc.write("PEX_PYTHON=%s" % symlink_path) |
| 359 | |
| 360 | body = "print('Hello')" |
| 361 | _, rc = run_simple_pex_test(body, coverage=True, env=make_env(HOME=tmpdir)) |
| 362 | assert rc == 0 |
| 363 | |
| 364 | |
| 365 | def test_entry_point_exit_code(tmpdir): |
nothing calls this directly
no test coverage detected