MCPcopy
hub / github.com/pex-tool/pex / test_pp_invalid

Function test_pp_invalid

tests/test_pex_bootstrapper.py:251–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249
250
251def test_pp_invalid():
252 # type: () -> None
253 with ENV.patch(PEX_PYTHON="/invalid/abs/python"):
254 with pytest.raises(
255 UnsatisfiableInterpreterConstraintsError,
256 match=(
257 r"The specified PEX_PYTHON=/invalid/abs/python could not be identified as a "
258 r"valid Python interpreter."
259 ),
260 ):
261 find_compatible_interpreter()
262
263
264def test_pp_exact():

Callers

nothing calls this directly

Calls 2

patchMethod · 0.45

Tested by

no test coverage detected