MCPcopy Index your code
hub / github.com/pex-tool/pex / test_iter_interpreter_errors

Method test_iter_interpreter_errors

tests/test_interpreter.py:164–169  ·  view source on GitHub ↗
(self, invalid_interpreter)

Source from the content-addressed store, hash-verified

162 assert len(error_message) > 0
163
164 def test_iter_interpreter_errors(self, invalid_interpreter):
165 # type: (str) -> None
166 results = list(PythonInterpreter.iter_candidates(paths=[invalid_interpreter]))
167
168 assert len(results) == 1
169 self.assert_error(results[0], invalid_interpreter)
170
171 def test_iter_interpreter_mixed(
172 self, test_interpreter1, test_interpreter2, invalid_interpreter

Callers

nothing calls this directly

Calls 2

assert_errorMethod · 0.95
iter_candidatesMethod · 0.80

Tested by

no test coverage detected