diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-10 18:17:46 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-10 18:17:46 (GMT) |
commit | 1682e5d74080d88109b3fc54e2ddfa762feb3e1d (patch) | |
tree | f12a24b81302f643264728357956909d5d8f2a8c /Lib/test | |
parent | a9494f6c53b9b69063f0f304062a6a6bf013e47a (diff) | |
download | cpython-1682e5d74080d88109b3fc54e2ddfa762feb3e1d.zip cpython-1682e5d74080d88109b3fc54e2ddfa762feb3e1d.tar.gz cpython-1682e5d74080d88109b3fc54e2ddfa762feb3e1d.tar.bz2 |
Issue #14157: Fix time.strptime failing without a year on February 29th.
Patch by Hynek Schlawack.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_strptime.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py index 98d759b..7245671 100644 --- a/Lib/test/test_strptime.py +++ b/Lib/test/test_strptime.py @@ -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)""" |