Skip to content

Commit

Permalink
pythongh-112984: Fix test_ctypes.test_loading.test_load_dll_with_flag…
Browse files Browse the repository at this point in the history
…s when directory name includes a dot (pythonGH-114217)
  • Loading branch information
zooba authored and Glyphack committed Jan 27, 2024
1 parent 9724231 commit c657743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_ctypes/test_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c657743

Please sign in to comment.