[Python-checkins] cpython (3.2): Issue #10864 has been fixed: remove the workaround
victor.stinner
python-checkins at python.org
Mon Mar 21 02:12:16 CET 2011
http://hg.python.org/cpython/rev/d56eb817b181
changeset: 68781:d56eb817b181
branch: 3.2
parent: 68778:c60271bb1fb1
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Mon Mar 21 02:11:01 2011 +0100
summary:
Issue #10864 has been fixed: remove the workaround
files:
Lib/test/test_time.py
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
@@ -295,12 +295,8 @@
except ValueError:
# strftime() is limited to [1; 9999] with Visual Studio
return
- # Issue #10864: OpenIndiana is limited to 4 digits,
- # but Python doesn't raise a ValueError
- #self.assertEqual(text, '12345')
- #self.assertEqual(self.yearstr(123456789), '123456789')
- self.assertIn(text, ('2345', '12345'))
- self.assertIn(self.yearstr(123456789), ('123456789', '6789'))
+ self.assertEqual(text, '12345')
+ self.assertEqual(self.yearstr(123456789), '123456789')
class _Test2dYear(_BaseYearTest):
accept2dyear = 1
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list