From b320682577dd7b3055d88aa162818a8bcd4d5b53 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Thu, 30 Mar 2006 17:49:55 +0000 Subject: [PATCH] Output more info when the test fails. --- Lib/ctypes/test/test_loading.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py index 5a76bb4cfd..34f74963da 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): -- 2.40.0