Skip to content

Commit

Permalink
use second roundtrip to test for dtype
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Mar 21, 2023
1 parent 5359d90 commit 2041f6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,9 @@ def test_roundtrip_boolean_dtype(self) -> None:
with self.roundtrip(original) as actual:
assert_identical(original, actual)
assert actual["x"].dtype == "bool"
assert actual["x"].encoding["dtype"] == "bool"
with self.roundtrip(actual) as actual2:
assert_identical(original, actual2)
assert actual2["x"].dtype == "bool"

def test_orthogonal_indexing(self) -> None:
in_memory = create_test_data()
Expand Down

0 comments on commit 2041f6e

Please sign in to comment.