From d1bd7f77303d08652b5f67c7385125c3d0ec9209 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Tue, 1 Nov 2011 23:42:05 +0100 Subject: Additional tests for negative years. --- Lib/test/test_time.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 003856a..0e89904 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -423,6 +423,8 @@ class _Test4dYear(_BaseYearTest): self.assertEqual(self.yearstr(-1), self._format % -1) self.assertEqual(self.yearstr(-1234), '-1234') self.assertEqual(self.yearstr(-123456), '-123456') + self.assertEqual(self.yearstr(-123456789), str(-123456789)) + self.assertEqual(self.yearstr(-1234567890), str(-1234567890)) self.assertEqual(self.yearstr(TIME_MINYEAR), str(TIME_MINYEAR)) self.assertRaises(OverflowError, self.yearstr, TIME_MINYEAR - 1) -- cgit v0.12