Skip to content

Commit

Permalink
bpo-36085: Add additional load flag to ensure DLL loads successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Mar 30, 2019
1 parent e653d4d commit eb20485
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/ctypes/test/test_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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());" +
Expand Down

0 comments on commit eb20485

Please sign in to comment.