Further simplify gettmarg()

This commit is contained in:
Alexander Belopolsky 2011-01-06 21:57:06 +00:00
parent 388af4bb35
commit 610e544bf7
2 changed files with 6 additions and 19 deletions

View file

@ -131,6 +131,7 @@ class TimeTestCase(unittest.TestCase):
self.assertRaises(OverflowError, time.asctime, (bigyear + 1,) + (0,)*8)
self.assertRaises(TypeError, time.asctime, 0)
self.assertRaises(TypeError, time.asctime, ())
self.assertRaises(TypeError, time.asctime, (0,) * 10)
def test_asctime_bounding_check(self):
self._bounds_checking(time.asctime)