Skip to content

Commit

Permalink
TST: Update IntervalArray min/max test to fail on changed default ski…
Browse files Browse the repository at this point in the history
…pna (#59747)

Test
  • Loading branch information
jsngn committed Sep 9, 2024
1 parent 078b732 commit f3d19fb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pandas/tests/arrays/interval/test_interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,10 @@ def test_min_max(self, left_right_dtypes, index_or_series_or_array):
res = arr_na.max(skipna=False)
assert np.isnan(res)

res = arr_na.min(skipna=True)
assert res == MIN
assert type(res) == type(MIN)
res = arr_na.max(skipna=True)
assert res == MAX
assert type(res) == type(MAX)
for kws in [{"skipna": True}, {}]:
res = arr_na.min(**kws)
assert res == MIN
assert type(res) == type(MIN)
res = arr_na.max(**kws)
assert res == MAX
assert type(res) == type(MAX)

0 comments on commit f3d19fb

Please sign in to comment.