mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add a build test for getting unicode env vars on windows
This commit is contained in:
parent
65a0eaeac2
commit
17b84867dd
@ -165,6 +165,12 @@ class BuildTest(unittest.TestCase):
|
||||
x = strftime(fmt, t)
|
||||
au(x, 'strftime')
|
||||
self.assertEqual(unicode_type(time.strftime(fmt.replace('%e', '%#d'), t)), x)
|
||||
from polyglot.builtins import getenv
|
||||
q = 'value'
|
||||
os.environ['test_unicode_getenv'] = q
|
||||
val = getenv('test_unicode_getenv')
|
||||
self.assertEqual(val, q)
|
||||
self.assertTrue(isinstance(val, type('')))
|
||||
|
||||
def test_sqlite(self):
|
||||
import sqlite3
|
||||
|
Loading…
x
Reference in New Issue
Block a user