@@ -1921,33 +1921,36 @@ def test_to_zarr_append_compute_false_roundtrip(self):
1921
1921
ds , ds_to_append , _ = create_append_test_data ()
1922
1922
ds , ds_to_append = ds .chunk (), ds_to_append .chunk ()
1923
1923
1924
- with self .create_zarr_target () as store :
1925
- delayed_obj = self .save (ds , store , compute = False , mode = "w" )
1926
- assert isinstance (delayed_obj , Delayed )
1924
+ with pytest .warns (SerializationWarning ):
1925
+ with self .create_zarr_target () as store :
1926
+ delayed_obj = self .save (ds , store , compute = False , mode = "w" )
1927
+ assert isinstance (delayed_obj , Delayed )
1928
+
1929
+ with pytest .raises (AssertionError ):
1930
+ with self .open (store ) as actual :
1931
+ assert_identical (ds , actual )
1932
+
1933
+ delayed_obj .compute ()
1927
1934
1928
- with pytest .raises (AssertionError ):
1929
1935
with self .open (store ) as actual :
1930
1936
assert_identical (ds , actual )
1931
1937
1932
- delayed_obj .compute ()
1938
+ delayed_obj = self .save (
1939
+ ds_to_append , store , compute = False , append_dim = "time"
1940
+ )
1941
+ assert isinstance (delayed_obj , Delayed )
1933
1942
1934
- with self .open (store ) as actual :
1935
- assert_identical (ds , actual )
1943
+ with pytest .raises (AssertionError ):
1944
+ with self .open (store ) as actual :
1945
+ assert_identical (
1946
+ xr .concat ([ds , ds_to_append ], dim = "time" ), actual
1947
+ )
1936
1948
1937
- delayed_obj = self .save (
1938
- ds_to_append , store , compute = False , append_dim = "time"
1939
- )
1940
- assert isinstance (delayed_obj , Delayed )
1949
+ delayed_obj .compute ()
1941
1950
1942
- with pytest .raises (AssertionError ):
1943
1951
with self .open (store ) as actual :
1944
1952
assert_identical (xr .concat ([ds , ds_to_append ], dim = "time" ), actual )
1945
1953
1946
- delayed_obj .compute ()
1947
-
1948
- with self .open (store ) as actual :
1949
- assert_identical (xr .concat ([ds , ds_to_append ], dim = "time" ), actual )
1950
-
1951
1954
def test_encoding_chunksizes (self ):
1952
1955
# regression test for GH2278
1953
1956
# see also test_encoding_chunksizes_unlimited
@@ -3519,6 +3522,7 @@ def test_uamiv_format_mfread(self):
3519
3522
["example.uamiv" , "example.uamiv" ],
3520
3523
engine = "pseudonetcdf" ,
3521
3524
concat_dim = "TSTEP" ,
3525
+ combine = "nested" ,
3522
3526
backend_kwargs = {"format" : "uamiv" },
3523
3527
)
3524
3528
0 commit comments