Skip to content

Commit 2e22d0a

Browse files
[3.15] gh-158091: Check only the file name for _d in test_dll_dependency_import (GH-158099) (#158108)
Co-authored-by: Lazizbek Ergashev <lazerg2@gmail.com>
1 parent bcec380 commit 2e22d0a

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
@@ -787,7 +787,7 @@ def test_dll_dependency_import(self):
787787
pydname = importlib.util.find_spec("_sqlite3").origin
788788
depname = os.path.join(
789789
os.path.dirname(pydname),
790-
"sqlite3{}.dll".format("_d" if "_d" in pydname else ""))
790+
"sqlite3{}.dll".format("_d" if "_d" in os.path.basename(pydname) else ""))
791791

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

0 commit comments

Comments
 (0)