(self, chunk)
| 3442 | |
| 3443 | @pytest.mark.parametrize("chunk", [False, True]) |
| 3444 | def test_save_emptydim(self, chunk) -> None: |
| 3445 | if chunk and not has_dask: |
| 3446 | pytest.skip("requires dask") |
| 3447 | ds = Dataset({"x": (("a", "b"), np.empty((5, 0))), "y": ("a", [1, 2, 5, 8, 9])}) |
| 3448 | if chunk: |
| 3449 | ds = ds.chunk({}) # chunk dataset to save dask array |
| 3450 | with self.roundtrip(ds) as ds_reload: |
| 3451 | assert_identical(ds, ds_reload) |
| 3452 | |
| 3453 | @requires_dask |
| 3454 | def test_no_warning_from_open_emptydim_with_chunks(self) -> None: |
nothing calls this directly
no test coverage detected