]> git.ipfire.org Git - thirdparty/Python/cpython.git/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:52:03 +0000 (17:52 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Mon, 3 Jan 2011 17:52:03 +0000 (17:52 +0000)
Lib/test/test_time.py

index 0028f15cb028fde2ef1e43d6418b73782adc57ff..0cec3e44914d2916dcc85ac3de30bda4d9703104 100644 (file)
@@ -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