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