Skip to content

Commit f9c14e0

Browse files
committed
flake8 fixes
1 parent dbdf63f commit f9c14e0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

xarray/tests/test_backends.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,30 +2565,29 @@ def create_store(self):
25652565
class ZarrBaseV3(ZarrBase):
25662566
def test_roundtrip_coordinates_with_space(self):
25672567
original = Dataset(coords={"x": 0, "y z": 1})
2568-
expected = Dataset({"y z": 1}, {"x": 0})
25692568
with pytest.warns(SerializationWarning):
25702569
# v3 stores do not allow spaces in the key name
25712570
with pytest.raises(ValueError):
2572-
with self.roundtrip(original) as actual:
2571+
with self.roundtrip(original):
25732572
pass
25742573

25752574

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")
25772576
class TestZarrKVStoreV3(ZarrBaseV3):
25782577
@contextlib.contextmanager
25792578
def create_zarr_target(self):
25802579
yield KVStoreV3({})
25812580

25822581

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")
25842583
class TestZarrDirectoryStoreV3(ZarrBaseV3):
25852584
@contextlib.contextmanager
25862585
def create_zarr_target(self):
25872586
with create_tmp_file(suffix=".zr3") as tmp:
25882587
yield DirectoryStoreV3(tmp)
25892588

25902589

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")
25922591
class TestZarrDirectoryStoreV3FromPath(TestZarrDirectoryStoreV3):
25932592
# Must specify zarr_version=3 to get a v3 store because create_zarr_target
25942593
# is a string path.

0 commit comments

Comments
 (0)