mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #14157: Fix time.strptime failing without a year on February 29th.
Patch by Hynek Schlawack.
This commit is contained in:
parent
a9494f6c53
commit
1682e5d740
3 changed files with 11 additions and 1 deletions
|
|
@ -378,6 +378,9 @@ class StrptimeTests(unittest.TestCase):
|
|||
need_escaping = ".^$*+?{}\[]|)("
|
||||
self.assertTrue(_strptime._strptime_time(need_escaping, need_escaping))
|
||||
|
||||
def test_feb29_on_leap_year_without_year(self):
|
||||
time.strptime("Feb 29", "%b %d")
|
||||
|
||||
class Strptime12AMPMTests(unittest.TestCase):
|
||||
"""Test a _strptime regression in '%I %p' at 12 noon (12 PM)"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue