Skip to content

Commit 2ccb2a2

Browse files
committed
Add missing test case for when wrapping the year makes it invalid (too large)
1 parent 9d02f82 commit 2ccb2a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/datetimetester.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3386,6 +3386,7 @@ def test_fromisoformat_fails_datetime(self):
33863386
'2009-04-19T24:01:00.000000', # Has non-zero minutes on 24:00
33873387
'2009-04-32T24:00:00.000000', # Day is invalid before wrapping due to 24:00
33883388
'2009-13-01T24:00:00.000000', # Month is invalid before wrapping due to 24:00
3389+
'9999-12-31T24:00:00.000000', # Year is invalid after wrapping due to 24:00
33893390
]
33903391

33913392
for bad_str in bad_strs:

0 commit comments

Comments
 (0)