summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-10-19 08:29:51 (GMT)
committerGitHub <noreply@github.com>2024-10-19 08:29:51 (GMT)
commita7443a1735c33d5758b47ac9b8a1c34bac4ef994 (patch)
treefe81ac4612c1fbd11cfec55ead5167c93cb4cd72 /Lib
parent84074a4fd810948350cec5500e77dc974cb5433d (diff)
downloadcpython-a7443a1735c33d5758b47ac9b8a1c34bac4ef994.zip
cpython-a7443a1735c33d5758b47ac9b8a1c34bac4ef994.tar.gz
cpython-a7443a1735c33d5758b47ac9b8a1c34bac4ef994.tar.bz2
gh-52551: Use wcsftime() to implement time.strftime() on Windows (GH-125658)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_strftime.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py
index cebfc89..752e313 100644
--- a/Lib/test/test_strftime.py
+++ b/Lib/test/test_strftime.py
@@ -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: