[Python-checkins] cpython: Issue #13312: skip the single failing value for now.

florent.xicluna python-checkins at python.org
Wed Nov 2 01:28:28 CET 2011


http://hg.python.org/cpython/rev/9cb1b85237a9
changeset: 73298:9cb1b85237a9
user: Florent Xicluna <florent.xicluna at gmail.com>
date: Wed Nov 02 01:28:17 2011 +0100
summary:
 Issue #13312: skip the single failing value for now.
files:
 Lib/test/test_time.py | 4 +++-
 1 files changed, 3 insertions(+), 1 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
@@ -425,7 +425,9 @@
 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.assertEqual(self.yearstr(TIME_MINYEAR + 1), str(TIME_MINYEAR + 1))
+ # On some platforms it loses the sign (issue #13312)
+ # 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 によって変換されたページ (->オリジナル) /