Skip to content

Commit 9455403

Browse files
authored
gh-112984: Fix test_ctypes.test_loading.test_load_dll_with_flags when directory name includes a dot (GH-114217)
1 parent f56d132 commit 9455403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_ctypes/test_loading.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_load_hasattr(self):
141141
def test_load_dll_with_flags(self):
142142
_sqlite3 = import_helper.import_module("_sqlite3")
143143
src = _sqlite3.__file__
144-
if src.partition(".")[0].lower().endswith("_d"):
144+
if os.path.basename(src).partition(".")[0].lower().endswith("_d"):
145145
ext = "_d.dll"
146146
else:
147147
ext = ".dll"

0 commit comments

Comments
 (0)