diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-14 17:44:59 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-14 17:44:59 (GMT) |
commit | b90252ed17bc16880cee36d55e362b8da716d3cd (patch) | |
tree | 5aa9da856f1ab39c4eafeeec05ff9686fc1b9c2e /Lib/test/test_strptime.py | |
parent | e7f67b5b98765fedf7bc7a78592b33d44270a78f (diff) | |
download | cpython-b90252ed17bc16880cee36d55e362b8da716d3cd.zip cpython-b90252ed17bc16880cee36d55e362b8da716d3cd.tar.gz cpython-b90252ed17bc16880cee36d55e362b8da716d3cd.tar.bz2 |
Followup to issue #14157: respect the relative ordering of values produced by time.strptime().
Patch by Hynek.
Diffstat (limited to 'Lib/test/test_strptime.py')
-rw-r--r-- | Lib/test/test_strptime.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py index 2d157f0..58e4309 100644 --- a/Lib/test/test_strptime.py +++ b/Lib/test/test_strptime.py @@ -381,6 +381,11 @@ class StrptimeTests(unittest.TestCase): def test_feb29_on_leap_year_without_year(self): time.strptime("Feb 29", "%b %d") + def test_mar1_comes_after_feb29_even_when_omitting_the_year(self): + self.assertLess( + time.strptime("Feb 29", "%b %d"), + time.strptime("Mar 1", "%b %d")) + class Strptime12AMPMTests(unittest.TestCase): """Test a _strptime regression in '%I %p' at 12 noon (12 PM)""" |