Dont pass unicode paths to ctypes WinDLL

This commit is contained in:
Kovid Goyal 2016-07-17 10:35:54 +05:30
parent e867344cf1
commit 3ea989387b

View File

@ -25,7 +25,7 @@ class BuildTest(unittest.TestCase):
for x in os.listdir(base):
if x.lower().endswith('.dll'):
try:
ctypes.WinDLL(os.path.join(base, x))
ctypes.WinDLL(str(os.path.join(base, x)))
except Exception as err:
self.assertTrue(False, 'Failed to load DLL %s with error: %s' % (x, err))