Fix failing strftime test

time.strftime supports %e natively on windows in python 3
This commit is contained in:
Kovid Goyal 2020-10-09 12:39:02 +05:30
parent 0444558e21
commit 85b97ba3d3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -178,9 +178,6 @@ class BuildTest(unittest.TestCase):
for fmt in (fmt, fmt.encode('ascii')):
x = strftime(fmt, t)
au(x, 'strftime')
if isinstance(fmt, bytes):
fmt = fmt.decode('ascii')
self.assertEqual(unicode_type(time.strftime(fmt.replace('%e', '%#d'), t)), x)
tdir = winutil.temp_path()
path = os.path.join(tdir, 'test-create-file.txt')
h = winutil.create_file(