mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Followup to issue #14157: respect the relative ordering of values produced by time.strptime().
Patch by Hynek.
This commit is contained in:
parent
2d82d049f6
commit
072e4a3fc7
2 changed files with 13 additions and 0 deletions
|
|
@ -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)"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue