summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-03-30 17:49:55 (GMT)
committerThomas Heller <theller@ctypes.org>2006-03-30 17:49:55 (GMT)
commitb320682577dd7b3055d88aa162818a8bcd4d5b53 (patch)
tree1582862ad32afc40fb0390ff15880903964494ec
parent314861c568d4bf10af1102823e23c9efe648fa0c (diff)
downloadcpython-b320682577dd7b3055d88aa162818a8bcd4d5b53.zip
cpython-b320682577dd7b3055d88aa162818a8bcd4d5b53.tar.gz
cpython-b320682577dd7b3055d88aa162818a8bcd4d5b53.tar.bz2
Output more info when the test fails.
-rw-r--r--Lib/ctypes/test/test_loading.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_loading.py b/Lib/ctypes/test/test_loading.py
index 5a76bb4..34f7496 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):