()
| 8396 | |
| 8397 | |
| 8398 | def test_transpose_error() -> None: |
| 8399 | # Transpose dataset with list as argument |
| 8400 | # Should raise error |
| 8401 | ds = xr.Dataset({"foo": (("x", "y"), [[21]]), "bar": (("x", "y"), [[12]])}) |
| 8402 | |
| 8403 | with pytest.raises( |
| 8404 | TypeError, |
| 8405 | match=re.escape( |
| 8406 | "transpose requires dim to be passed as multiple arguments. Expected `'y', 'x'`. Received `['y', 'x']` instead" |
| 8407 | ), |
| 8408 | ): |
| 8409 | ds.transpose(["y", "x"]) # type: ignore[arg-type] |
nothing calls this directly
no test coverage detected
searching dependent graphs…