[Python-checkins] r43460 - python/trunk/Lib/ctypes/test/test_loading.py

thomas.heller python-checkins at python.org
Thu Mar 30 19:49:55 CEST 2006


Author: thomas.heller
Date: Thu Mar 30 19:49:55 2006
New Revision: 43460

Modified:
   python/trunk/Lib/ctypes/test/test_loading.py
Log:
Output more info when the test fails.

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	Thu Mar 30 19:49:55 2006
@@ -22,7 +22,11 @@
         else:
             name = "libc.so.6"
 ##        print (sys.platform, os.name)
-        cdll.load(name)
+        name = "impossible.so"
+        try:
+            cdll.load(name)
+        except Exception, details:
+            self.fail((str(details), name, (os.name, sys.platform)))
         self.assertRaises(OSError, cdll.load, self.unknowndll)
 
     def test_load_version(self):


More information about the Python-checkins mailing list