mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Actually, there's more than one failing value. (changeset 9cb1b85237a9, issue #13312).
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user