Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6da730d

Browse files
committedJul 28, 2022
testcase update
1 parent 765049b commit 6da730d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎pandas/tests/tools/test_to_datetime.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ def test_datetime_outofbounds_scalar(self, value, format, infer):
976976
if format is not None:
977977
msg = (
978978
"is a bad directive in format|"
979-
"Out of bounds .* present at position 0"
979+
+ "Out of bounds .* present at position 0"
980980
)
981981
with pytest.raises(ValueError, match=msg):
982982
to_datetime(
@@ -2597,7 +2597,10 @@ def test_invalid_origins_tzinfo(self):
25972597
@pytest.mark.parametrize("format", [None, "%Y-%m-%d %H:%M:%S"])
25982598
def test_to_datetime_out_of_bounds_with_format_arg(self, format):
25992599
# see gh-23830
2600-
msg = "Out of bounds nanosecond timestamp: 2417-10-27 00:00:00 present at position 0"
2600+
msg = (
2601+
"Out of bounds nanosecond timestamp: 2417-10-27 00:00:00 "
2602+
+ "present at position 0"
2603+
)
26012604
with pytest.raises(OutOfBoundsDatetime, match=msg):
26022605
to_datetime("2417-10-27 00:00:00", format=format)
26032606

0 commit comments

Comments
 (0)
Please sign in to comment.