Skip to content

Commit 71a0c0f

Browse files
committed
replace prev error msg on test_timedelta64 with new error msg
1 parent 8f7430f commit 71a0c0f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/tests/arithmetic/test_timedelta64.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,10 @@ def test_subtraction_ops(self):
320320
with pytest.raises(TypeError, match=msg):
321321
td - dt
322322

323-
msg = "(bad|unsupported) operand type for unary"
323+
msg = (
324+
r"TypeError: unsupported operand type\(s\) "
325+
"for -: 'DatetimeArray' and 'Timedelta'"
326+
)
324327
with pytest.raises(TypeError, match=msg):
325328
td - dti
326329

0 commit comments

Comments
 (0)