We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a0c0f commit 1aba9a2Copy full SHA for 1aba9a2
pandas/tests/arithmetic/test_datetime64.py
@@ -1995,7 +1995,8 @@ def test_operators_datetimelike_with_timezones(self):
1995
exp = (dt1.dt.tz_localize(None) - td1[0]).dt.tz_localize(tz)
1996
tm.assert_series_equal(result, exp)
1997
msg = (
1998
- r"TypeError: unsupported operand type\(s\) for -: 'DatetimeArray' and '.*'"
+ r"TypeError: unsupported operand type\(s\) "
1999
+ "for -: 'DatetimeArray' and 'Timedelta'"
2000
)
2001
with pytest.raises(TypeError, match=msg):
2002
td1[0] - dt1
0 commit comments