Skip to content

Commit d79fc9d

Browse files
authored
Pydap flaky tests (#10525)
1 parent d8c37a9 commit d79fc9d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/whats-new.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ Deprecations
2525
Bug fixes
2626
~~~~~~~~~
2727

28+
- Fix Pydap Datatree backend testing. Testing now compares elements of (unordered) two sets (before, lists) (:pull:`10525`).
29+
By `Miguel Jimenez-Urias <https://github.com/Mikejmnez>`_.
30+
2831

2932
Documentation
3033
~~~~~~~~~~~~~

xarray/tests/test_backends_datatree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def test_inherited_coords(self, url=simplegroup_datatree_url) -> None:
495495
| Salinity (time, Z, Y, X) float32 ...
496496
"""
497497
tree = open_datatree(url, engine=self.engine)
498-
assert list(tree.dims) == ["time", "Z", "nv"]
498+
assert set(tree.dims) == set(["time", "Z", "nv"])
499499
assert tree["/SimpleGroup"].coords["time"].dims == ("time",)
500500
assert tree["/SimpleGroup"].coords["Z"].dims == ("Z",)
501501
assert tree["/SimpleGroup"].coords["Y"].dims == ("Y",)

0 commit comments

Comments
 (0)