diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-02 02:22:15 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-02 02:22:15 (GMT) |
commit | dfee6c8dee2cc2fd21ce6a7ce03258153fb6427a (patch) | |
tree | 5bd7c87b85d34e89914c97804f172c15b5cb9268 | |
parent | e2a732e70690324cfbda42524c44dab3fad3eb2f (diff) | |
download | cpython-dfee6c8dee2cc2fd21ce6a7ce03258153fb6427a.zip cpython-dfee6c8dee2cc2fd21ce6a7ce03258153fb6427a.tar.gz cpython-dfee6c8dee2cc2fd21ce6a7ce03258153fb6427a.tar.bz2 |
Actually, there's more than one failing value. (changeset 9cb1b85237a9, issue #13312).
-rw-r--r-- | Lib/test/test_time.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 819fef3..28aa46f 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -425,8 +425,9 @@ class _Test4dYear(_BaseYearTest): 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 + 1), str(TIME_MINYEAR + 1)) - # On some platforms it loses the sign (issue #13312) + # On some platforms it gives weird result (issue #13312) + for y in range(TIME_MINYEAR + 10000, TIME_MINYEAR, -1): + self.assertEqual(self.yearstr(y), str(y)) # self.assertEqual(self.yearstr(TIME_MINYEAR), str(TIME_MINYEAR)) self.assertRaises(OverflowError, self.yearstr, TIME_MINYEAR - 1) |