Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Borja Lorente committed Feb 15, 2019
1 parent d820a94 commit 78e5ab7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pex/pex_bootstrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ def maybe_reexec_pex(compatibility_constraints):

else:
# Apply constraints to target using regular PATH
target = _select_interpreter(pex_python_path=None, compatibility_constraints=compatibility_constraints)
target = _select_interpreter(
pex_python_path=None,
compatibility_constraints=compatibility_constraints
)

if target and os.path.realpath(target) != os.path.realpath(sys.executable):
cmdline = [target] + sys.argv
Expand Down
2 changes: 2 additions & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ def test_interpreter_resolution_with_pex_python_path():
else:
assert str(pex_python_path.split(':')[0]).encode() in stdout


@pytest.mark.skipif(IS_PYPY)
def test_interpreter_constraints_honored_without_ppp_or_pp():

Expand Down Expand Up @@ -433,6 +434,7 @@ def test_interpreter_constraints_honored_without_ppp_or_pp():
if sys.version_info[0] == 3:
assert ("Python %s" % PY36) in str(stdout).split("\n")[0]


@pytest.mark.skipif(NOT_CPYTHON36)
def test_interpreter_resolution_pex_python_path_precedence_over_pex_python():
with temporary_dir() as td:
Expand Down

0 comments on commit 78e5ab7

Please sign in to comment.