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

Function test_pp_exact_satisfies_constraints

tests/test_pex_bootstrapper.py:285–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283
284
285def test_pp_exact_satisfies_constraints():
286 # type: () -> None
287
288 py310 = ensure_python_interpreter(PY310)
289
290 pb = PEXBuilder()
291 pb.info.interpreter_constraints = InterpreterConstraints.parse(">=3.7")
292 pb.freeze()
293
294 with ENV.patch(PEX_PYTHON=py310):
295 assert PythonInterpreter.from_binary(py310) == find_compatible_interpreter(
296 interpreter_test=InterpreterTest(entry_point=pb.path(), pex_info=pb.info),
297 )
298
299
300def test_pp_exact_does_not_satisfy_constraints():

Callers

nothing calls this directly

Calls 9

freezeMethod · 0.95
pathMethod · 0.95
PEXBuilderClass · 0.90
InterpreterTestClass · 0.90
from_binaryMethod · 0.80
parseMethod · 0.45
patchMethod · 0.45

Tested by

no test coverage detected