summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-21 01:11:01 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-21 01:11:01 (GMT)
commit13ed2ea7a21cf98acb4497aa1edd3202a99682c6 (patch)
tree1c5c2d163c7b6846da1242d388b09d06d1d72be0
parent25871dac0091cf99e8e35271606b87898d9c4c45 (diff)
downloadcpython-13ed2ea7a21cf98acb4497aa1edd3202a99682c6.zip
cpython-13ed2ea7a21cf98acb4497aa1edd3202a99682c6.tar.gz
cpython-13ed2ea7a21cf98acb4497aa1edd3202a99682c6.tar.bz2
Issue #10864 has been fixed: remove the workaround
-rw-r--r--Lib/test/test_time.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index 7266e27..2b58093 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -295,12 +295,8 @@ class _TestStrftimeYear:
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