@@ -1539,6 +1539,7 @@ def test_roundtrip_consolidated(self):
1539
1539
self .check_dtypes_roundtripped (expected , actual )
1540
1540
assert_identical (expected , actual )
1541
1541
1542
+ @requires_dask
1542
1543
def test_auto_chunk (self ):
1543
1544
original = create_test_data ().chunk ()
1544
1545
@@ -1556,6 +1557,7 @@ def test_auto_chunk(self):
1556
1557
# chunk size should be the same as original
1557
1558
assert v .chunks == original [k ].chunks
1558
1559
1560
+ @requires_dask
1559
1561
@pytest .mark .filterwarnings ("ignore:Specified Dask chunks" )
1560
1562
def test_manual_chunk (self ):
1561
1563
original = create_test_data ().chunk ({"dim1" : 3 , "dim2" : 4 , "dim3" : 3 })
@@ -1598,6 +1600,7 @@ def test_manual_chunk(self):
1598
1600
assert_identical (actual , auto )
1599
1601
assert_identical (actual .load (), auto .load ())
1600
1602
1603
+ @requires_dask
1601
1604
def test_warning_on_bad_chunks (self ):
1602
1605
original = create_test_data ().chunk ({"dim1" : 4 , "dim2" : 3 , "dim3" : 5 })
1603
1606
@@ -1620,6 +1623,7 @@ def test_warning_on_bad_chunks(self):
1620
1623
assert v ._in_memory == (k in actual .dims )
1621
1624
assert len (record ) == 0
1622
1625
1626
+ @requires_dask
1623
1627
def test_deprecate_auto_chunk (self ):
1624
1628
original = create_test_data ().chunk ()
1625
1629
with pytest .warns (FutureWarning ):
@@ -1638,6 +1642,7 @@ def test_deprecate_auto_chunk(self):
1638
1642
# there should be no chunks
1639
1643
assert v .chunks is None
1640
1644
1645
+ @requires_dask
1641
1646
def test_write_uneven_dask_chunks (self ):
1642
1647
# regression for GH#2225
1643
1648
original = create_test_data ().chunk ({"dim1" : 3 , "dim2" : 4 , "dim3" : 3 })
@@ -1662,6 +1667,7 @@ def test_chunk_encoding(self):
1662
1667
with self .roundtrip (data ) as actual :
1663
1668
pass
1664
1669
1670
+ @requires_dask
1665
1671
def test_chunk_encoding_with_dask (self ):
1666
1672
# These datasets DO have dask chunks. Need to check for various
1667
1673
# interactions between dask and zarr chunks
@@ -1896,6 +1902,7 @@ def test_append_with_new_variable(self):
1896
1902
combined ["new_var" ] = ds_with_new_var ["new_var" ]
1897
1903
assert_identical (combined , xr .open_zarr (store_target ))
1898
1904
1905
+ @requires_dask
1899
1906
def test_to_zarr_compute_false_roundtrip (self ):
1900
1907
from dask .delayed import Delayed
1901
1908
@@ -1915,6 +1922,7 @@ def test_to_zarr_compute_false_roundtrip(self):
1915
1922
with self .open (store ) as actual :
1916
1923
assert_identical (original , actual )
1917
1924
1925
+ @requires_dask
1918
1926
def test_to_zarr_append_compute_false_roundtrip (self ):
1919
1927
from dask .delayed import Delayed
1920
1928
@@ -1951,6 +1959,7 @@ def test_to_zarr_append_compute_false_roundtrip(self):
1951
1959
with self .open (store ) as actual :
1952
1960
assert_identical (xr .concat ([ds , ds_to_append ], dim = "time" ), actual )
1953
1961
1962
+ @requires_dask
1954
1963
def test_encoding_chunksizes (self ):
1955
1964
# regression test for GH2278
1956
1965
# see also test_encoding_chunksizes_unlimited
0 commit comments