bpo-36085: Add additional load flag to ensure DLL loads successfully … · python/cpython@ac19d96

Original file line numberDiff line numberDiff line change

@@ -167,7 +167,8 @@ def should_fail(command):

167167
168168

# Full path load with DLL_LOAD_DIR should succeed

169169

should_pass("WinDLL(nt._getfullpathname('_sqlite3.dll'), " +

170-

"winmode=nt._LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR)")

170+

"winmode=nt._LOAD_LIBRARY_SEARCH_SYSTEM32|" +

171+

"nt._LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR)")

171172
172173

# User-specified directory should succeed

173174

should_pass("import os; p = os.add_dll_directory(os.getcwd());" +