Skip to content

Commit d5c7b0a

Browse files
committed
update exception type raised when wrong argument to Timestamp.replace
1 parent 2ac141a commit d5c7b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tseries/tests/test_timezones.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1198,7 +1198,7 @@ def test_replace(self):
11981198
# error
11991199
def f():
12001200
dt.replace(foo=5)
1201-
self.assertRaises(ValueError, f)
1201+
self.assertRaises(TypeError, f)
12021202

12031203
def f():
12041204
dt.replace(hour=0.1)

0 commit comments

Comments
 (0)