mirror of
https://github.com/python/cpython.git
synced 2024-11-21 12:59:38 +01:00
This commit is contained in:
parent
84074a4fd8
commit
a7443a1735
@ -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:
|
||||
|
@ -0,0 +1 @@
|
||||
Use :c:func:`!wcsftime` to implement :func:`time.strftime` on Windows.
|
@ -739,10 +739,6 @@ checktm(struct tm* buf)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
/* wcsftime() doesn't format correctly time zones, see issue #10653 */
|
||||
# undef HAVE_WCSFTIME
|
||||
#endif
|
||||
#define STRFTIME_FORMAT_CODES \
|
||||
"Commonly used format codes:\n\
|
||||
\n\
|
||||
|
Loading…
Reference in New Issue
Block a user