Skip to content

Commit 2224f68

Browse files
committed
test yday jumps
1 parent 97c1bfb commit 2224f68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_time.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,12 @@ def test_gmtime(self):
197197
(-6177600, (1969, 10, 21, 12, 0, 0, 1, 294)),
198198
# non-leap years (pre epoch)
199199
(-2203891200, (1900, 3, 1, 0, 0, 0, 3, 60)),
200+
(-2203977600, (1900, 2, 28, 0, 0, 0, 2, 59)),
200201
(-5359564800, (1800, 3, 1, 0, 0, 0, 3, 60)),
202+
(-5359651200, (1800, 2, 28, 0, 0, 0, 2, 59)),
201203
# leap years (pre epoch)
202204
(-2077660800, (1904, 3, 1, 0, 0, 0, 3, 61)),
205+
(-2077833600, (1904, 2, 28, 0, 0, 0, 1, 59)),
203206
):
204207
with self.subTest(t=t, expected=expected):
205208
res = time.gmtime(t)

0 commit comments

Comments
 (0)