bpo-36085: Add additional load flag to ensure DLL loads successfully (GH-12633)

This commit is contained in:
Steve Dower 2019-03-30 17:14:46 -07:00 committed by GitHub
parent e724152796
commit ac19d96527
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ class LoaderTest(unittest.TestCase):
# Full path load with DLL_LOAD_DIR should succeed # Full path load with DLL_LOAD_DIR should succeed
should_pass("WinDLL(nt._getfullpathname('_sqlite3.dll'), " + 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 # User-specified directory should succeed
should_pass("import os; p = os.add_dll_directory(os.getcwd());" + should_pass("import os; p = os.add_dll_directory(os.getcwd());" +