Skip to content

Commit

Permalink
Flaky test + fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneschalk committed Feb 6, 2024
1 parent 7d200e2 commit 9ae49dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions xarray/tests/test_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -4490,6 +4490,7 @@ def test_open_multi_dataset(self) -> None:
) as actual:
assert_identical(expected, actual)

@pytest.mark.xfail(reason="Flaky test. Very open to contributions on fixing this")
def test_dask_roundtrip(self) -> None:
with create_tmp_file() as tmp:
data = create_test_data()
Expand Down
16 changes: 8 additions & 8 deletions xarray/tests/test_dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def test_repr_windows(self) -> None:
array([[1, 2, 3],
[4, 5, 6]])
Coordinates:
* x (x) int32 12B 0 1 2
other int32 4B 0
* x (x) int64 24B 0 1 2
other int64 8B 0
Dimensions without coordinates: time
Attributes:
foo: bar"""
Expand Down Expand Up @@ -159,9 +159,9 @@ def test_repr_multiindex_windows(self) -> None:
<xarray.DataArray (x: 4)> Size: 16B
array([0, 1, 2, 3])
Coordinates:
* x (x) object 16B MultiIndex
* level_1 (x) object 16B 'a' 'a' 'b' 'b'
* level_2 (x) int64 16B 1 2 1 2"""
* x (x) object 32B MultiIndex
* level_1 (x) object 32B 'a' 'a' 'b' 'b'
* level_2 (x) int64 32B 1 2 1 2"""
)
assert expected == repr(self.mda)

Expand Down Expand Up @@ -203,9 +203,9 @@ def test_repr_multiindex_long_windows(self) -> None:
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])
Coordinates:
* x (x) object 128B MultiIndex
* level_1 (x) object 128B 'a' 'a' 'a' 'a' 'a' 'a' ... 'd' 'd' 'd' 'd' 'd' 'd'
* level_2 (x) int64 128B 1 2 3 4 5 6 7 8 1 2 3 4 ... 5 6 7 8 1 2 3 4 5 6 7 8"""
* x (x) object 256B MultiIndex
* level_1 (x) object 256B 'a' 'a' 'a' 'a' 'a' 'a' ... 'd' 'd' 'd' 'd' 'd' 'd'
* level_2 (x) int64 256B 1 2 3 4 5 6 7 8 1 2 3 4 ... 5 6 7 8 1 2 3 4 5 6 7 8"""
)
assert expected == repr(mda_long)

Expand Down

0 comments on commit 9ae49dc

Please sign in to comment.