Skip to content

Commit

Permalink
Fix/silence upstream tests (#9879)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian authored Dec 11, 2024
1 parent 96e0ff7 commit 49502fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions xarray/tests/test_cftimeindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,7 @@ def test_to_datetimeindex_feb_29(calendar):
index.to_datetimeindex()


@pytest.mark.xfail(reason="fails on pandas main branch")
@requires_cftime
def test_multiindex():
index = xr.cftime_range("2001-01-01", periods=100, calendar="360_day")
Expand Down
5 changes: 3 additions & 2 deletions xarray/tests/test_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,9 +1020,10 @@ def test_display_nbytes() -> None:
assert actual == expected

actual = repr(xds["foo"])
expected = """
array_repr = repr(xds.foo.data).replace("\n ", "")
expected = f"""
<xarray.DataArray 'foo' (foo: 1200)> Size: 2kB
array([ 0, 1, 2, ..., 1197, 1198, 1199], dtype=int16)
{array_repr}
Coordinates:
* foo (foo) int16 2kB 0 1 2 3 4 5 6 ... 1194 1195 1196 1197 1198 1199
""".strip()
Expand Down

0 comments on commit 49502fc

Please sign in to comment.