From: Alexander Belopolsky Date: Mon, 3 Jan 2011 17:52:03 +0000 (+0000) Subject: Issue 10814: time.asctime test will now use a valid day with out of range year. X-Git-Tag: v2.7.2rc1~412 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70645a47e5b278c15c619554ad341675288497cb;p=thirdparty%2FPython%2Fcpython.git Issue 10814: time.asctime test will now use a valid day with out of range year. --- diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 0028f15cb028..0cec3e44914d 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -121,7 +121,7 @@ class TimeTestCase(unittest.TestCase): # (12345, 1, 0, 0, 0, 0, 0, 0, 0)) # XXX: For now, just make sure we don't have a crash: try: - time.asctime((12345, 1, 0, 0, 0, 0, 0, 0, 0)) + time.asctime((12345, 1, 1, 0, 0, 0, 0, 1, 0)) except ValueError: pass