From 45ae8503b432841bfe128dea60d5b65a62b02d18 Mon Sep 17 00:00:00 2001 From: Matthew Iannucci Date: Tue, 22 Oct 2024 10:59:43 -0400 Subject: [PATCH] Update virtualizarr/tests/test_writers/test_icechunk.py Co-authored-by: Tom Nicholas --- virtualizarr/tests/test_writers/test_icechunk.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virtualizarr/tests/test_writers/test_icechunk.py b/virtualizarr/tests/test_writers/test_icechunk.py index 6f24ef7c..70210df7 100644 --- a/virtualizarr/tests/test_writers/test_icechunk.py +++ b/virtualizarr/tests/test_writers/test_icechunk.py @@ -111,7 +111,9 @@ def test_set_single_virtual_ref_without_encoding( npt.assert_equal(array, expected_array) ds = open_zarr(store=icechunk_filestore, zarr_format=3, consolidated=False) - assert np.allclose(ds.foo.to_numpy(), expected_ds.foo.to_numpy()) + import xarray.testing as xrt + + assert xrt.assert_identical(ds, expected_ds) # note: we don't need to test that committing works, because now we have confirmed # the refs are in the store (even uncommitted) it's icechunk's problem to manage them now.