(expr: str, column: int, message: str)
| 149 | ), |
| 150 | ) |
| 151 | def 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( |
nothing calls this directly
no test coverage detected