https://github.com/python/cpython/commit/2e22d0a484a911a21d5aafbf346ff9b03446ae03 commit: 2e22d0a484a911a21d5aafbf346ff9b03446ae03 branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2026-09-28T18:55:46+03:00 summary:
[3.15] gh-158091: Check only the file name for _d in test_dll_dependency_import (GH-158099) (#158108) Co-authored-by: Lazizbek Ergashev <[email protected]> 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 67bf9143ee3fd80..0061e8f99a46658 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -787,7 +787,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]
