Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Lib/test/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ def test_strptime(self):
self.fail("conversion specifier %r failed with '%s' input." %
(format, strf_output))

def test_strptime_0th_week_day(self):
self.assertEqual(time.strptime('2024-0-3','%Y-%W-%w'),
time.strptime('2024-1-3','%Y-%W-%w'))

def test_strptime_bytes(self):
# Make sure only strings are accepted as arguments to strptime.
self.assertRaises(TypeError, time.strptime, b'2009', "%Y")
Expand Down