MCPcopy
hub / github.com/pytest-dev/pytest / test_syntax_errors

Function test_syntax_errors

testing/test_mark_expression.py:151–155  ·  view source on GitHub ↗
(expr: str, column: int, message: str)

Source from the content-addressed store, hash-verified

149 ),
150)
151def test_syntax_errors(expr: str, column: int, message: str) -> None:
152 with pytest.raises(SyntaxError) as excinfo:
153 evaluate(expr, lambda ident, /, **kwargs: True)
154 assert excinfo.value.offset == column
155 assert excinfo.value.msg == message
156
157
158@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

evaluateFunction · 0.85

Tested by

no test coverage detected