From e7369ff22e9f5861f09f305685f7acecdb1f8250 Mon Sep 17 00:00:00 2001 From: Miguel Jimenez-Urias Date: Fri, 11 Jul 2025 11:08:18 -0700 Subject: [PATCH 1/3] compare unordered set as opposed to ordered list --- xarray/tests/test_backends_datatree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/tests/test_backends_datatree.py b/xarray/tests/test_backends_datatree.py index 518758a0efb..9e61fe6b6cb 100644 --- a/xarray/tests/test_backends_datatree.py +++ b/xarray/tests/test_backends_datatree.py @@ -495,7 +495,7 @@ def test_inherited_coords(self, url=simplegroup_datatree_url) -> None: | Salinity (time, Z, Y, X) float32 ... """ tree = open_datatree(url, engine=self.engine) - assert list(tree.dims) == ["time", "Z", "nv"] + assert set(tree.dims) == set(["time", "Z", "nv"]) assert tree["/SimpleGroup"].coords["time"].dims == ("time",) assert tree["/SimpleGroup"].coords["Z"].dims == ("Z",) assert tree["/SimpleGroup"].coords["Y"].dims == ("Y",) From c6f84a57365d95940bac898b9c344037649f369f Mon Sep 17 00:00:00 2001 From: Miguel Jimenez-Urias Date: Fri, 11 Jul 2025 11:18:51 -0700 Subject: [PATCH 2/3] add to what`s new --- doc/whats-new.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 327603ba415..21650a5bf8b 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,9 @@ Deprecations Bug fixes ~~~~~~~~~ +- Fix Pydap Datatree backend testing. Testing now compares elements of (unordered) two sets (before, lists). + By `Miguel Jimenez-Urias `_. + Documentation ~~~~~~~~~~~~~ From 983d265fe6895c5f92eb9d135555ae959d117d81 Mon Sep 17 00:00:00 2001 From: Miguel Jimenez-Urias Date: Fri, 11 Jul 2025 11:22:06 -0700 Subject: [PATCH 3/3] include number of pr on what`s new section --- doc/whats-new.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 21650a5bf8b..605175e32d2 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,7 +25,7 @@ Deprecations Bug fixes ~~~~~~~~~ -- Fix Pydap Datatree backend testing. Testing now compares elements of (unordered) two sets (before, lists). +- Fix Pydap Datatree backend testing. Testing now compares elements of (unordered) two sets (before, lists) (:pull:`10525`). By `Miguel Jimenez-Urias `_.