]> granicus.if.org Git - python/commitdiff
Issue 10814: time.asctime test will now use a valid day with out of range year.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Mon, 3 Jan 2011 17:06:39 +0000 (17:06 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Mon, 3 Jan 2011 17:06:39 +0000 (17:06 +0000)
Lib/test/test_time.py

index 0b029d6af0d69fd97bbc18222c706aeed60dabb4..8c1d8f8f81998298b9deae30311163987e67f392 100644 (file)
@@ -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