Skip to content

Commit 323aa73

Browse files
committed
Also fix test output for 32 bit platforms
1 parent c229ecc commit 323aa73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/tests/test_strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ def test_slice_unsupported(self, dt):
894894
with pytest.raises(TypeError, match="did not contain a loop"):
895895
np.strings.slice(np.array([1, 2, 3]), 4)
896896

897-
with pytest.raises(TypeError, match=r"Cannot cast ufunc '_slice' input .* from .* to dtype\('int64'\)"):
897+
with pytest.raises(TypeError, match=r"Cannot cast ufunc '_slice' input .* from .* to dtype\('int(64|32)'\)"):
898898
np.strings.slice(np.array(['foo', 'bar'], dtype=dt), np.array(['foo', 'bar'], dtype=dt))
899899

900900
@pytest.mark.parametrize("int_dt", [np.int8, np.int16, np.int32, np.int64,

0 commit comments

Comments
 (0)