bpo-40214: Fix ctypes WinDLL test with insecure flags (GH-19652)

This commit is contained in:
Steve Dower 2020-04-22 17:04:46 +01:00 committed by GitHub
parent 9bee32b34e
commit 9b49893900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -158,11 +158,9 @@ class LoaderTest(unittest.TestCase):
# Relative path (but not just filename) should succeed
should_pass("WinDLL('./_sqlite3.dll')")
# XXX: This test has started failing on Azure Pipelines CI. See
# bpo-40214 for more information.
if 0:
# Insecure load flags should succeed
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)")
# Full path load without DLL_LOAD_DIR shouldn't find dependency
should_fail("WinDLL(nt._getfullpathname('_sqlite3.dll'), " +