https://github.com/python/cpython/commit/8353d199cd3d0e4479827885d27ec04c69cd7c93 commit: 8353d199cd3d0e4479827885d27ec04c69cd7c93 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: JelleZijlstra <[email protected]> date: 2026-09-25T18:58:33-07:00 summary:
[3.13] gh-158091: Check only the file name for _d in test_dll_dependency_import (GH-158099) (#158110) (cherry picked from commit f9719f68ac6cc4b225c439808e126c6e619c2f65) 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 9f2bd18a5935fb..6087873d9ba25a 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -806,7 +806,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]
