MCPcopy
hub / github.com/pydata/xarray / test_eval_error_syntax

Function test_eval_error_syntax

xarray/tests/test_eval.py:330–334  ·  view source on GitHub ↗

Test error message for malformed expressions.

()

Source from the content-addressed store, hash-verified

328
329
330def test_eval_error_syntax() -> None:
331 """Test error message for malformed expressions."""
332 ds = Dataset({"a": ("x", [1, 2, 3])})
333 with pytest.raises(ValueError, match="Invalid"):
334 ds.eval("a +")
335
336
337def test_eval_error_invalid_assignment() -> None:

Callers

nothing calls this directly

Calls 2

evalMethod · 0.95
DatasetClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…