Skip to content

Commit 0f04c6a

Browse files
ShaharNavehWillAyd
authored andcommitted
CI/TST: fix failing tests in py37_np_dev (#31091)
1 parent b68a9bb commit 0f04c6a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pandas/tests/arrays/categorical/test_algos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def test_take_bounds(self, allow_fill):
111111
if allow_fill:
112112
msg = "indices are out-of-bounds"
113113
else:
114-
msg = "index 4 is out of bounds for size 3"
114+
msg = "index 4 is out of bounds for( axis 0 with|) size 3"
115115
with pytest.raises(IndexError, match=msg):
116116
cat.take([4, 5], allow_fill=allow_fill)
117117

pandas/tests/indexes/multi/test_analytics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def test_take_fill_value():
218218
with pytest.raises(ValueError, match=msg):
219219
idx.take(np.array([1, 0, -5]), fill_value=True)
220220

221-
msg = "index -5 is out of bounds for size 4"
221+
msg = "index -5 is out of bounds for( axis 0 with|) size 4"
222222
with pytest.raises(IndexError, match=msg):
223223
idx.take(np.array([1, -5]))
224224

pandas/tests/indexes/period/test_indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def test_take_fill_value(self):
357357
with pytest.raises(ValueError, match=msg):
358358
idx.take(np.array([1, 0, -5]), fill_value=True)
359359

360-
msg = "index -5 is out of bounds for size 3"
360+
msg = "index -5 is out of bounds for( axis 0 with|) size 3"
361361
with pytest.raises(IndexError, match=msg):
362362
idx.take(np.array([1, -5]))
363363

pandas/tests/series/indexing/test_indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ def test_take():
894894
expected = Series([4, 2, 4], index=[4, 3, 4])
895895
tm.assert_series_equal(actual, expected)
896896

897-
msg = "index {} is out of bounds for size 5"
897+
msg = "index {} is out of bounds for( axis 0 with|) size 5"
898898
with pytest.raises(IndexError, match=msg.format(10)):
899899
s.take([1, 10])
900900
with pytest.raises(IndexError, match=msg.format(5)):

pandas/tests/test_take.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def test_bounds_check_large(self):
428428
with pytest.raises(IndexError, match=msg):
429429
algos.take(arr, [2, 3], allow_fill=True)
430430

431-
msg = "index 2 is out of bounds for size 2"
431+
msg = "index 2 is out of bounds for( axis 0 with|) size 2"
432432
with pytest.raises(IndexError, match=msg):
433433
algos.take(arr, [2, 3], allow_fill=False)
434434

0 commit comments

Comments
 (0)