Issue 10814: time.asctime test will now use a valid day with out of range year.
This commit is contained in:
parent
8dfb9288af
commit
622eb174d2
|
@ -131,7 +131,7 @@ class TimeTestCase(unittest.TestCase):
|
||||||
# (12345, 1, 0, 0, 0, 0, 0, 0, 0))
|
# (12345, 1, 0, 0, 0, 0, 0, 0, 0))
|
||||||
# XXX: For now, just make sure we don't have a crash:
|
# XXX: For now, just make sure we don't have a crash:
|
||||||
try:
|
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:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue