mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
gh-52551: Use wcsftime() to implement time.strftime() on Windows (GH-125658)
This commit is contained in:
parent
84074a4fd8
commit
a7443a1735
3 changed files with 2 additions and 6 deletions
|
|
@ -183,8 +183,7 @@ class Y1900Tests(unittest.TestCase):
|
|||
def test_y_before_1900(self):
|
||||
# Issue #13674, #19634
|
||||
t = (1899, 1, 1, 0, 0, 0, 0, 0, 0)
|
||||
if (sys.platform == "win32"
|
||||
or sys.platform.startswith(("aix", "sunos", "solaris"))):
|
||||
if sys.platform.startswith(("aix", "sunos", "solaris")):
|
||||
with self.assertRaises(ValueError):
|
||||
time.strftime("%y", t)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue