Skip to content

Commit 0b66dbd

Browse files
committed
use second roundtrip to test for dtype
1 parent 94b7547 commit 0b66dbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xarray/tests/test_backends.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,9 @@ def test_roundtrip_boolean_dtype(self) -> None:
632632
with self.roundtrip(original) as actual:
633633
assert_identical(original, actual)
634634
assert actual["x"].dtype == "bool"
635-
assert actual["x"].encoding["dtype"] == "bool"
635+
with self.roundtrip(actual) as actual2:
636+
assert_identical(original, actual2)
637+
assert actual2["x"].dtype == "bool"
636638

637639
def test_orthogonal_indexing(self) -> None:
638640
in_memory = create_test_data()

0 commit comments

Comments
 (0)