Backport fix for bug #1643943. · python/cpython@6d8e5ad · GitHub
Skip to content

Commit 6d8e5ad

Browse files
committed
Backport fix for bug #1643943.
1 parent 817b489 commit 6d8e5ad

3 files changed

Lines changed: 36 additions & 31 deletions

File tree

Lib/_strptime.py

Lines changed: 30 additions & 31 deletions

Lib/test/test_strptime.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,10 @@ def test_helper(ymd_tuple, test_reason):
463463
"of the year")
464464
test_helper((1917, 12, 31), "Dec 31 on Monday with year starting and "
465465
"ending on Monday")
466+
test_helper((2007, 01, 07), "First Sunday of 2007")
467+
test_helper((2007, 01, 14), "Second Sunday of 2007")
468+
test_helper((2006, 12, 31), "Last Sunday of 2006")
469+
test_helper((2006, 12, 24), "Second to last Sunday of 2006")
466470

467471

468472
class CacheTests(unittest.TestCase):

Misc/NEWS

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)