mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix failing strftime test
time.strftime supports %e natively on windows in python 3
This commit is contained in:
parent
0444558e21
commit
85b97ba3d3
@ -178,9 +178,6 @@ class BuildTest(unittest.TestCase):
|
|||||||
for fmt in (fmt, fmt.encode('ascii')):
|
for fmt in (fmt, fmt.encode('ascii')):
|
||||||
x = strftime(fmt, t)
|
x = strftime(fmt, t)
|
||||||
au(x, 'strftime')
|
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()
|
tdir = winutil.temp_path()
|
||||||
path = os.path.join(tdir, 'test-create-file.txt')
|
path = os.path.join(tdir, 'test-create-file.txt')
|
||||||
h = winutil.create_file(
|
h = winutil.create_file(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user