There was an error while loading. Please reload this page.
1 parent 0b72907 commit f9719f6Copy full SHA for f9719f6
1 file changed
Lib/test/test_import/__init__.py
@@ -789,7 +789,7 @@ def test_dll_dependency_import(self):
789
pydname = importlib.util.find_spec("_sqlite3").origin
790
depname = os.path.join(
791
os.path.dirname(pydname),
792
- "sqlite3{}.dll".format("_d" if "_d" in pydname else ""))
+ "sqlite3{}.dll".format("_d" if "_d" in os.path.basename(pydname) else ""))
793
794
with os_helper.temp_dir() as tmp:
795
tmp2 = os.path.join(tmp, "DLLs")
0 commit comments