]> granicus.if.org Git - python/commitdiff
Output more info when the test fails.
authorThomas Heller <theller@ctypes.org>
Thu, 30 Mar 2006 17:49:55 +0000 (17:49 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 30 Mar 2006 17:49:55 +0000 (17:49 +0000)
Lib/ctypes/test/test_loading.py

index 5a76bb4cfdad63f4c76ded8f38be7df07d87a283..34f74963da60896a262076cd5161ceee68a10f98 100644 (file)
@@ -22,7 +22,11 @@ class LoaderTest(unittest.TestCase):
         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):