Skip to content

Commit 1aba9a2

Browse files
committed
specify dtype since test func doesn't contain multiple params/loops
1 parent 71a0c0f commit 1aba9a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/arithmetic/test_datetime64.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,8 @@ def test_operators_datetimelike_with_timezones(self):
19951995
exp = (dt1.dt.tz_localize(None) - td1[0]).dt.tz_localize(tz)
19961996
tm.assert_series_equal(result, exp)
19971997
msg = (
1998-
r"TypeError: unsupported operand type\(s\) for -: 'DatetimeArray' and '.*'"
1998+
r"TypeError: unsupported operand type\(s\) "
1999+
"for -: 'DatetimeArray' and 'Timedelta'"
19992000
)
20002001
with pytest.raises(TypeError, match=msg):
20012002
td1[0] - dt1

0 commit comments

Comments
 (0)