From: Alexander Belopolsky Date: Mon, 3 Jan 2011 17:06:39 +0000 (+0000) Subject: Issue 10814: time.asctime test will now use a valid day with out of range year. X-Git-Tag: v3.2.1b1~347^2~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=622eb174d2c211a972e26fcccf9e240f6f9e6af2;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 0b029d6af0d6..8c1d8f8f8199 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -131,7 +131,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