[Python-checkins] r63396 - python/trunk/Lib/ctypes/test/test_loading.py
thomas.heller
python-checkins at python.org
Fri May 16 22:19:21 CEST 2008
Author: thomas.heller
Date: Fri May 16 22:19:07 2008
New Revision: 63396
Log:
Very simple test for ctypes.util.find_library on Windows.
Modified:
python/trunk/Lib/ctypes/test/test_loading.py
Modified: python/trunk/Lib/ctypes/test/test_loading.py
==============================================================================
--- python/trunk/Lib/ctypes/test/test_loading.py (original)
+++ python/trunk/Lib/ctypes/test/test_loading.py Fri May 16 22:19:07 2008
@@ -6,7 +6,7 @@
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 @@
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")
More information about the Python-checkins
mailing list