mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix failing winutil test
This commit is contained in:
parent
dfb5b72eca
commit
2a0084c1ff
@ -163,6 +163,8 @@ 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)
|
self.assertEqual(unicode_type(time.strftime(fmt.replace('%e', '%#d'), t)), x)
|
||||||
|
|
||||||
def test_sqlite(self):
|
def test_sqlite(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user