summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2019-03-31 00:14:46 (GMT)
committerGitHub <noreply@github.com>2019-03-31 00:14:46 (GMT)
commitac19d9652799412404aef6b357a01057df34e005 (patch)
treef40226c6e918c963dd0602ec1aaacf3c34df9df4 /Lib
parente724152796a5a41544f52054506c6c2248242a5d (diff)
downloadcpython-ac19d9652799412404aef6b357a01057df34e005.zip
cpython-ac19d9652799412404aef6b357a01057df34e005.tar.gz
cpython-ac19d9652799412404aef6b357a01057df34e005.tar.bz2
bpo-36085: Add additional load flag to ensure DLL loads successfully (GH-12633)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_loading.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py
index be367c6..9b97d80 100644
--- a/Lib/ctypes/test/test_loading.py
+++ b/Lib/ctypes/test/test_loading.py
@@ -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());" +