Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bee32b commit 9b49893Copy full SHA for 9b49893
1 file changed
Lib/ctypes/test/test_loading.py
@@ -158,11 +158,9 @@ def should_fail(command):
158
# Relative path (but not just filename) should succeed
159
should_pass("WinDLL('./_sqlite3.dll')")
160
161
- # XXX: This test has started failing on Azure Pipelines CI. See
162
- # bpo-40214 for more information.
163
- if 0:
164
- # Insecure load flags should succeed
165
- should_pass("WinDLL('_sqlite3.dll', winmode=0)")
+ # Insecure load flags should succeed
+ # Clear the DLL directory to avoid safe search settings propagating
+ should_pass("windll.kernel32.SetDllDirectoryW(None); WinDLL('_sqlite3.dll', winmode=0)")
166
167
# Full path load without DLL_LOAD_DIR shouldn't find dependency
168
should_fail("WinDLL(nt._getfullpathname('_sqlite3.dll'), " +
0 commit comments