Skip to content

Commit

Permalink
explictly revert changes to test_write_store
Browse files Browse the repository at this point in the history
  • Loading branch information
d-v-b committed Dec 10, 2024
1 parent 9d147b9 commit 6578caa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,14 @@ def test_zero_dimensional_variable(self) -> None:
with self.roundtrip(expected) as actual:
assert_identical(expected, actual)

def test_write_store(self) -> None:
expected = create_test_data()
with self.roundtrip(expected) as actual:
assert_identical(actual, expected)
def test_write_store(self) -> None:
expected = create_test_data()
with self.create_store() as store:
expected.dump_to_store(store)
# we need to cf decode the store because it has time and
# non-dimension coordinates
with xr.decode_cf(store) as actual:
assert_allclose(expected, actual)

def check_dtypes_roundtripped(self, expected, actual):
for k in expected.variables:
Expand Down

0 comments on commit 6578caa

Please sign in to comment.