Skip to content

Commit

Permalink
gh-112984: Fix test_ctypes.test_loading.test_load_dll_with_flags when…
Browse files Browse the repository at this point in the history
… directory name includes a dot (GH-114217)
  • Loading branch information
zooba authored Jan 18, 2024
1 parent f56d132 commit 9455403
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 9455403

Please sign in to comment.