There was an error while loading. Please reload this page.
1 parent bc5ec7e commit 8353d19Copy full SHA for 8353d19
1 file changed
Lib/test/test_import/__init__.py
@@ -806,7 +806,7 @@ def test_dll_dependency_import(self):
806
pydname = importlib.util.find_spec("_sqlite3").origin
807
depname = os.path.join(
808
os.path.dirname(pydname),
809
- "sqlite3{}.dll".format("_d" if "_d" in pydname else ""))
+ "sqlite3{}.dll".format("_d" if "_d" in os.path.basename(pydname) else ""))
810
811
with os_helper.temp_dir() as tmp:
812
tmp2 = os.path.join(tmp, "DLLs")
0 commit comments