@@ -2565,30 +2565,29 @@ def create_store(self):
2565
2565
class ZarrBaseV3 (ZarrBase ):
2566
2566
def test_roundtrip_coordinates_with_space (self ):
2567
2567
original = Dataset (coords = {"x" : 0 , "y z" : 1 })
2568
- expected = Dataset ({"y z" : 1 }, {"x" : 0 })
2569
2568
with pytest .warns (SerializationWarning ):
2570
2569
# v3 stores do not allow spaces in the key name
2571
2570
with pytest .raises (ValueError ):
2572
- with self .roundtrip (original ) as actual :
2571
+ with self .roundtrip (original ):
2573
2572
pass
2574
2573
2575
2574
2576
- @pytest .mark .skipif (not have_zarr_v3 , reason = f "requires zarr version 3" )
2575
+ @pytest .mark .skipif (not have_zarr_v3 , reason = "requires zarr version 3" )
2577
2576
class TestZarrKVStoreV3 (ZarrBaseV3 ):
2578
2577
@contextlib .contextmanager
2579
2578
def create_zarr_target (self ):
2580
2579
yield KVStoreV3 ({})
2581
2580
2582
2581
2583
- @pytest .mark .skipif (not have_zarr_v3 , reason = f "requires zarr version 3" )
2582
+ @pytest .mark .skipif (not have_zarr_v3 , reason = "requires zarr version 3" )
2584
2583
class TestZarrDirectoryStoreV3 (ZarrBaseV3 ):
2585
2584
@contextlib .contextmanager
2586
2585
def create_zarr_target (self ):
2587
2586
with create_tmp_file (suffix = ".zr3" ) as tmp :
2588
2587
yield DirectoryStoreV3 (tmp )
2589
2588
2590
2589
2591
- @pytest .mark .skipif (not have_zarr_v3 , reason = f "requires zarr version 3" )
2590
+ @pytest .mark .skipif (not have_zarr_v3 , reason = "requires zarr version 3" )
2592
2591
class TestZarrDirectoryStoreV3FromPath (TestZarrDirectoryStoreV3 ):
2593
2592
# Must specify zarr_version=3 to get a v3 store because create_zarr_target
2594
2593
# is a string path.
0 commit comments