Kaydet (Commit) ee130b72 authored tarafından Thomas Heller's avatar Thomas Heller

Very simple test for ctypes.util.find_library on Windows.

üst 95ba13fa
......@@ -6,7 +6,7 @@ from ctypes.test import is_resource_enabled
libc_name = None
if os.name == "nt":
libc_name = "msvcrt"
libc_name = find_library("c")
elif os.name == "ce":
libc_name = "coredll"
elif sys.platform == "cygwin":
......@@ -43,6 +43,7 @@ class LoaderTest(unittest.TestCase):
if os.name in ("nt", "ce"):
def test_load_library(self):
self.failIf(libc_name is None)
if is_resource_enabled("printing"):
print find_library("kernel32")
print find_library("user32")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment