diff options
author | Thomas Heller <theller@ctypes.org> | 2008-05-16 20:19:07 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2008-05-16 20:19:07 (GMT) |
commit | ee130b72f897dc90b51b2ff78df1eedfde483f5e (patch) | |
tree | 3c7f17764b76e3d5cbc518bd073b2d60bca220c4 | |
parent | 95ba13fa85664f4451c4962e19048d105571ca25 (diff) | |
download | cpython-ee130b72f897dc90b51b2ff78df1eedfde483f5e.zip cpython-ee130b72f897dc90b51b2ff78df1eedfde483f5e.tar.gz cpython-ee130b72f897dc90b51b2ff78df1eedfde483f5e.tar.bz2 |
Very simple test for ctypes.util.find_library on Windows.
-rw-r--r-- | Lib/ctypes/test/test_loading.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py index 4b95029..712b650 100644 --- a/Lib/ctypes/test/test_loading.py +++ b/Lib/ctypes/test/test_loading.py @@ -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") |