https://github.com/python/cpython/commit/f9719f68ac6cc4b225c439808e126c6e619c2f65
commit: f9719f68ac6cc4b225c439808e126c6e619c2f65
branch: main
author: Lazizbek Ergashev <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-09-24T08:42:10-07:00
summary:
gh-158091: Check only the file name for _d in test_dll_dependency_import
(#158099)
files:
M Lib/test/test_import/__init__.py
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index 65c425c1d29721..17b1e03470dd04 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -789,7 +789,7 @@ def test_dll_dependency_import(self):
pydname = importlib.util.find_spec("_sqlite3").origin
depname = os.path.join(
os.path.dirname(pydname),
- "sqlite3{}.dll".format("_d" if "_d" in pydname else ""))
+ "sqlite3{}.dll".format("_d" if "_d" in os.path.basename(pydname)
else ""))
with os_helper.temp_dir() as tmp:
tmp2 = os.path.join(tmp, "DLLs")
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]