Test error message when trying to access dunder attributes.
()
| 343 | |
| 344 | |
| 345 | def test_eval_error_dunder_access() -> None: |
| 346 | """Test error message when trying to access dunder attributes.""" |
| 347 | ds = Dataset({"a": ("x", [1, 2, 3])}) |
| 348 | with pytest.raises(ValueError, match="private attributes"): |
| 349 | ds.eval("a.__class__") |
| 350 | |
| 351 | |
| 352 | def test_eval_error_missing_method() -> None: |