https://github.com/python/cpython/commit/945540306c12116154d2e4cc6c17a8efd2290537
commit: 945540306c12116154d2e4cc6c17a8efd2290537
branch: main
author: Steve Dower <[email protected]>
committer: zooba <[email protected]>
date: 2024-01-18T00:26:31Z
summary:
gh-112984: Fix test_ctypes.test_loading.test_load_dll_with_flags when directory
name includes a dot (GH-114217)
files:
M Lib/test/test_ctypes/test_loading.py
diff --git a/Lib/test/test_ctypes/test_loading.py
b/Lib/test/test_ctypes/test_loading.py
index 9f0547f4c955c0..59d7f51935f3cd 100644
--- a/Lib/test/test_ctypes/test_loading.py
+++ b/Lib/test/test_ctypes/test_loading.py
@@ -141,7 +141,7 @@ def test_load_hasattr(self):
def test_load_dll_with_flags(self):
_sqlite3 = import_helper.import_module("_sqlite3")
src = _sqlite3.__file__
- if src.partition(".")[0].lower().endswith("_d"):
+ if os.path.basename(src).partition(".")[0].lower().endswith("_d"):
ext = "_d.dll"
else:
ext = ".dll"
_______________________________________________
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]