From 3ea989387b5241210df0eb4b209e59746e8fcefb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 17 Jul 2016 10:35:54 +0530 Subject: [PATCH] Dont pass unicode paths to ctypes WinDLL --- src/calibre/test_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/test_build.py b/src/calibre/test_build.py index 245d695864..94e444b987 100644 --- a/src/calibre/test_build.py +++ b/src/calibre/test_build.py @@ -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))