Skip to content

Commit 32d4a2c

Browse files
committed
Silence some warnings
1 parent 93b971b commit 32d4a2c

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ filterwarnings = [
346346
"default:the `pandas.MultiIndex` object:FutureWarning:xarray.tests.test_variable",
347347
"default:Using a non-tuple sequence for multidimensional indexing is deprecated:FutureWarning",
348348
"default:Duplicate dimension names present:UserWarning:xarray.namedarray.core",
349+
# Zarr 2 V3 implementation
350+
"ignore:Zarr-Python is not in alignment with the final V3 specification",
349351
# TODO: this is raised for vlen-utf8, consolidated metadata, U1 dtype
350352
"ignore:is currently not part .* the Zarr version 3 specification.",
351353
# TODO: remove once we know how to deal with a changed signature in protocols

xarray/tests/test_duck_array_wrapping.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@
101101
},
102102
}
103103

104+
try:
105+
import jax
106+
107+
# enable double-precision
108+
jax.config.update("jax_enable_x64", True)
109+
except ImportError:
110+
pass
111+
104112

105113
class _BaseTest:
106114
def setup_for_test(self, request, namespace):

xarray/tests/test_variable.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2444,7 +2444,8 @@ def test_to_index(self):
24442444

24452445
def test_to_index_multiindex_level(self):
24462446
midx = pd.MultiIndex.from_product([["a", "b"], [1, 2]], names=("one", "two"))
2447-
ds = Dataset(coords={"x": midx})
2447+
with pytest.warns(FutureWarning):
2448+
ds = Dataset(coords={"x": midx})
24482449
assert ds.one.variable.to_index().equals(midx.get_level_values("one"))
24492450

24502451
def test_multiindex_default_level_names(self):

0 commit comments

Comments
 (0)