()
| 283 | |
| 284 | |
| 285 | def 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 | |
| 300 | def test_pp_exact_does_not_satisfy_constraints(): |
nothing calls this directly
no test coverage detected