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

Function test_eval_unsupported_statements

xarray/tests/test_eval.py:144–150  ·  view source on GitHub ↗

Test that unsupported statement types produce clear errors.

()

Source from the content-addressed store, hash-verified

142
143
144def test_eval_unsupported_statements() -> None:
145 """Test that unsupported statement types produce clear errors."""
146 ds = Dataset({"a": ("x", [1, 2, 3])})
147
148 # Augmented assignment is not supported
149 with pytest.raises(ValueError, match="Unsupported statement type"):
150 ds.eval("a += 1")
151
152
153def test_eval_functions() -> 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…