Commits

Thomas Heller  committed 36190d7

Output more info when the test fails.

  • Participants
  • Parent commits aaa04bf
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/ctypes/test/test_loading.py

         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):