From: Thomas Heller Date: Thu, 30 Mar 2006 17:49:55 +0000 (+0000) Subject: Output more info when the test fails. X-Git-Tag: v2.5a0~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b320682577dd7b3055d88aa162818a8bcd4d5b53;p=thirdparty%2FPython%2Fcpython.git Output more info when the test fails. --- diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py index 5a76bb4cfdad..34f74963da60 100644 --- a/Lib/ctypes/test/test_loading.py +++ b/Lib/ctypes/test/test_loading.py @@ -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):