File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -158,11 +158,9 @@ def should_fail(command):
158
158
# Relative path (but not just filename) should succeed
159
159
should_pass ("WinDLL('./_sqlite3.dll')" )
160
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)" )
161
+ # Insecure load flags should succeed
162
+ # Clear the DLL directory to avoid safe search settings propagating
163
+ should_pass ("windll.kernel32.SetDllDirectoryW(None); WinDLL('_sqlite3.dll', winmode=0)" )
166
164
167
165
# Full path load without DLL_LOAD_DIR shouldn't find dependency
168
166
should_fail ("WinDLL(nt._getfullpathname('_sqlite3.dll'), " +
You can’t perform that action at this time.
0 commit comments