From: Jack Jansen Date: Fri, 15 Sep 2000 12:57:35 +0000 (+0000) Subject: Allow am/pm as well as AM/PM (C9X behaviour). X-Git-Tag: v2.0b2~295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00ce51e38e92414bd5fb9ab6e5f439de2dd12177;p=thirdparty%2FPython%2Fcpython.git Allow am/pm as well as AM/PM (C9X behaviour). --- diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py index c713d05cc0c6..7f5cb8035e44 100755 --- a/Lib/test/test_strftime.py +++ b/Lib/test/test_strftime.py @@ -23,8 +23,8 @@ def strftest(now): gmt = time.gmtime(now) now = time.localtime(now) - if now[3] < 12: ampm='AM' - else: ampm='PM' + if now[3] < 12: ampm='(AM|am)' + else: ampm='(PM|pm)' jan1 = time.localtime(time.mktime((now[0], 1, 1) + (0,)*6))