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

Method assert_error

tests/test_interpreter.py:156–162  ·  view source on GitHub ↗
(self, result, expected_python)

Source from the content-addressed store, hash-verified

154 yield invalid_interpreter
155
156 def assert_error(self, result, expected_python):
157 # type: (InterpreterOrError, str) -> None
158 assert isinstance(result, tuple)
159 python, error_message = result
160 assert expected_python == python
161 assert isinstance(error_message, str)
162 assert len(error_message) > 0
163
164 def test_iter_interpreter_errors(self, invalid_interpreter):
165 # type: (str) -> None

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected