Skip to content

Commit 8353d19

Browse files
[3.13] gh-158091: Check only the file name for _d in test_dll_dependency_import (GH-158099) (#158110)
(cherry picked from commit f9719f6) Co-authored-by: Lazizbek Ergashev <lazerg2@gmail.com>
1 parent bc5ec7e commit 8353d19

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
@@ -806,7 +806,7 @@ def test_dll_dependency_import(self):
806806
pydname = importlib.util.find_spec("_sqlite3").origin
807807
depname = os.path.join(
808808
os.path.dirname(pydname),
809-
"sqlite3{}.dll".format("_d" if "_d" in pydname else ""))
809+
"sqlite3{}.dll".format("_d" if "_d" in os.path.basename(pydname) else ""))
810810

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

0 commit comments

Comments
 (0)