Skip to content

Commit 5fadbe4

Browse files
authored
Avoid bare pytest.raises in dtypes/cast/test_upcast.py (#32603)
1 parent a2acd1b commit 5fadbe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/dtypes/cast/test_upcast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_upcast_error(result):
1212
# GH23823 require result arg to be ndarray
1313
mask = np.array([False, True, False])
1414
other = np.array([61, 62, 63])
15-
with pytest.raises(ValueError):
15+
with pytest.raises(ValueError, match="The result input must be a ndarray"):
1616
result, _ = maybe_upcast_putmask(result, mask, other)
1717

1818

0 commit comments

Comments
 (0)