mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
Issue #10864 has been fixed: remove the workaround
This commit is contained in:
parent
25871dac00
commit
13ed2ea7a2
1 changed files with 2 additions and 6 deletions
|
@ -295,12 +295,8 @@ class _TestStrftimeYear:
|
||||||
except ValueError:
|
except ValueError:
|
||||||
# strftime() is limited to [1; 9999] with Visual Studio
|
# strftime() is limited to [1; 9999] with Visual Studio
|
||||||
return
|
return
|
||||||
# Issue #10864: OpenIndiana is limited to 4 digits,
|
self.assertEqual(text, '12345')
|
||||||
# but Python doesn't raise a ValueError
|
self.assertEqual(self.yearstr(123456789), '123456789')
|
||||||
#self.assertEqual(text, '12345')
|
|
||||||
#self.assertEqual(self.yearstr(123456789), '123456789')
|
|
||||||
self.assertIn(text, ('2345', '12345'))
|
|
||||||
self.assertIn(self.yearstr(123456789), ('123456789', '6789'))
|
|
||||||
|
|
||||||
class _Test2dYear(_BaseYearTest):
|
class _Test2dYear(_BaseYearTest):
|
||||||
accept2dyear = 1
|
accept2dyear = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue