Skip to content

Commit 70c5712

Browse files
committed
cleanup test
1 parent cbbe437 commit 70c5712

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

xarray/tests/test_backends.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3824,25 +3824,22 @@ def skip_if_not_engine(engine):
38243824
@requires_dask
38253825
@pytest.mark.filterwarnings("ignore:use make_scale(name) instead")
38263826
@pytest.mark.xfail(reason="Flaky test. Very open to contributions on fixing this")
3827+
@pytest.mark.skipif(ON_WINDOWS, "Skipping on Windows")
38273828
def test_open_mfdataset_manyfiles(
38283829
readengine, nfiles, parallel, chunks, file_cache_maxsize
38293830
):
38303831
# skip certain combinations
38313832
skip_if_not_engine(readengine)
38323833

3833-
if ON_WINDOWS:
3834-
pytest.skip("Skipping on Windows")
3835-
38363834
randdata = np.random.randn(nfiles)
38373835
original = Dataset({"foo": ("x", randdata)})
38383836
# test standard open_mfdataset approach with too many files
38393837
with create_tmp_files(nfiles) as tmpfiles:
3840-
writeengine = readengine
38413838
# split into multiple sets of temp files
38423839
for ii in original.x.values:
38433840
subds = original.isel(x=slice(ii, ii + 1))
3844-
if writeengine != "zarr":
3845-
subds.to_netcdf(tmpfiles[ii], engine=writeengine)
3841+
if readengine != "zarr":
3842+
subds.to_netcdf(tmpfiles[ii], engine=readengine)
38463843
else: # if writeengine == "zarr":
38473844
subds.to_zarr(store=tmpfiles[ii])
38483845

0 commit comments

Comments
 (0)