Skip to content

Commit 17159b6

Browse files
committed
changed match= lines
1 parent 1ef4eb5 commit 17159b6

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

pandas/tests/arithmetic/test_numeric.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -869,16 +869,12 @@ def test_non_1d_ea_raises_notimplementederror(self):
869869
ea_array = array([1, 2, 3, 4, 5], dtype="Int64").reshape(5, 1)
870870
np_array = np.array([1, 2, 3, 4, 5], dtype=np.int64).reshape(5, 1)
871871

872-
with pytest.raises(
873-
NotImplementedError,
874-
match="non-1D ExtensionArray operations are not supported",
875-
):
872+
msg = "can only perform ops with 1-d structures"
873+
874+
with pytest.raises(NotImplementedError, match=msg):
876875
ea_array * np_array
877876

878-
with pytest.raises(
879-
NotImplementedError,
880-
match="non-1D ExtensionArray operations are not supported",
881-
):
877+
with pytest.raises(NotImplementedError, match=msg):
882878
np_array * ea_array
883879

884880

0 commit comments

Comments
 (0)