]> granicus.if.org Git - python/commitdiff
bpo-36085: Add additional load flag to ensure DLL loads successfully (GH-12633)
authorSteve Dower <steve.dower@microsoft.com>
Sun, 31 Mar 2019 00:14:46 +0000 (17:14 -0700)
committerGitHub <noreply@github.com>
Sun, 31 Mar 2019 00:14:46 +0000 (17:14 -0700)
Lib/ctypes/test/test_loading.py

index be367c6fa35245641f2ea59f03a5a67b8aae218f..9b97d80086044d77c92408fa7720257155858132 100644 (file)
@@ -167,7 +167,8 @@ class LoaderTest(unittest.TestCase):
 
             # Full path load with DLL_LOAD_DIR should succeed
             should_pass("WinDLL(nt._getfullpathname('_sqlite3.dll'), " +
-                        "winmode=nt._LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR)")
+                        "winmode=nt._LOAD_LIBRARY_SEARCH_SYSTEM32|" +
+                        "nt._LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR)")
 
             # User-specified directory should succeed
             should_pass("import os; p = os.add_dll_directory(os.getcwd());" +