Skip to content

Commit f9719f6

Browse files
authored
gh-158091: Check only the file name for _d in test_dll_dependency_import (#158099)
1 parent 0b72907 commit f9719f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/test/test_import/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ def test_dll_dependency_import(self):
789789
pydname = importlib.util.find_spec("_sqlite3").origin
790790
depname = os.path.join(
791791
os.path.dirname(pydname),
792-
"sqlite3{}.dll".format("_d" if "_d" in pydname else ""))
792+
"sqlite3{}.dll".format("_d" if "_d" in os.path.basename(pydname) else ""))
793793

794794
with os_helper.temp_dir() as tmp:
795795
tmp2 = os.path.join(tmp, "DLLs")

0 commit comments

Comments
 (0)