We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1916c commit 789614eCopy full SHA for 789614e
pandas/tests/tslibs/test_parse_iso8601.py
@@ -60,3 +60,15 @@ def test_parsers_iso8601_invalid_offset_invalid():
60
61
with pytest.raises(ValueError, match=msg):
62
tslib._test_parse_iso8601(date_str)
63
+
64
65
+def test_parsers_iso8601_overflow():
66
+ # if use char sublen variable in parse_iso_8601_datetime, then overflow
67
+ # occurs and no exception is thrown
68
+ date_str = "2013-01-01 05:30:00aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"\
69
+ "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"\
70
71
72
+ "aaaaaaaaaaaaaaaaaaaaaa"
73
+ with pytest.raises(ValueError):
74
+ tslib._test_parse_iso8601(date_str)
0 commit comments