mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-112984: Fix test_ctypes.test_loading.test_load_dll_with_flags when directory name includes a dot (GH-114217)
This commit is contained in:
parent
f56d132deb
commit
945540306c
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ class LoaderTest(unittest.TestCase):
|
|||
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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue