8000 gh-112984: Fix test_ctypes.test_loading.test_load_dll_with_flags when… · Glyphack/cpython@c657743 · GitHub
[go: up one dir, main page]

Skip to content

Commit c657743

Browse files
zoobaGlyphack
authored andcommitted
pythongh-112984: Fix test_ctypes.test_loading.test_load_dll_with_flags when directory name includes a dot (pythonGH-114217)
1 parent 9724231 commit c657743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_ctypes/test_loading.py

Lines changed: 1 addition & 1 deletion
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)
0