gh-52551: Use wcsftime() to implement time.strftime() on Windows (GH-125658)

This commit is contained in:
Serhiy Storchaka 2024-10-19 11:29:51 +03:00 committed by GitHub
parent 84074a4fd8
commit a7443a1735
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 6 deletions

View file

@ -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: