[Python-checkins] cpython: Additional tests for negative years.

florent.xicluna python-checkins at python.org
Tue Nov 1 23:42:24 CET 2011


http://hg.python.org/cpython/rev/f666ecd5c2c5
changeset: 73294:f666ecd5c2c5
parent: 73292:ca1e2cf2947b
user: Florent Xicluna <florent.xicluna at gmail.com>
date: Tue Nov 01 23:42:05 2011 +0100
summary:
 Additional tests for negative years.
files:
 Lib/test/test_time.py | 2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -423,6 +423,8 @@
 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)
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /