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

https://github.com/python/cpython/commit/ac19d9652799412404aef6b357a01057df3... commit: ac19d9652799412404aef6b357a01057df34e005 branch: master author: Steve Dower <steve.dower@microsoft.com> committer: GitHub <noreply@github.com> date: 2019-03-30T17:14:46-07:00 summary: bpo-36085: Add additional load flag to ensure DLL loads successfully (GH-12633) files: M Lib/ctypes/test/test_loading.py diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py index be367c6fa352..9b97d8008604 100644 --- a/Lib/ctypes/test/test_loading.py +++ b/Lib/ctypes/test/test_loading.py @@ -167,7 +167,8 @@ def should_fail(command): # 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());" +
participants (1)
-
Steve Dower