summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strptime.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-05-10 18:17:46 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-05-10 18:17:46 (GMT)
commitc2b714ce216bb0c844e3d4c3440937b82a924e3d (patch)
tree4ed31322b2e39ede48225c97984dac05aae1efaa /Lib/test/test_strptime.py
parent35d03ed832cb7f3127794b218aac86fae93b8354 (diff)
downloadcpython-c2b714ce216bb0c844e3d4c3440937b82a924e3d.zip
cpython-c2b714ce216bb0c844e3d4c3440937b82a924e3d.tar.gz
cpython-c2b714ce216bb0c844e3d4c3440937b82a924e3d.tar.bz2
Issue #14157: Fix time.strptime failing without a year on February 29th.
Patch by Hynek Schlawack.
Diffstat (limited to 'Lib/test/test_strptime.py')
-rw-r--r--Lib/test/test_strptime.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py
index 14927d7..2d157f0 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)"""