mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Additional tests for negative years.
This commit is contained in:
parent
f24e7e6c41
commit
d1bd7f7730
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue