We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f56d132 commit 9455403Copy full SHA for 9455403
Lib/test/test_ctypes/test_loading.py
@@ -141,7 +141,7 @@ def test_load_hasattr(self):
141
def test_load_dll_with_flags(self):
142
_sqlite3 = import_helper.import_module("_sqlite3")
143
src = _sqlite3.__file__
144
- if src.partition(".")[0].lower().endswith("_d"):
+ if os.path.basename(src).partition(".")[0].lower().endswith("_d"):
145
ext = "_d.dll"
146
else:
147
ext = ".dll"
0 commit comments