Commit b3206825 authored by Thomas Heller's avatar Thomas Heller

Output more info when the test fails.

parent 314861c5
...@@ -22,7 +22,11 @@ class LoaderTest(unittest.TestCase): ...@@ -22,7 +22,11 @@ class LoaderTest(unittest.TestCase):
else: else:
name = "libc.so.6" name = "libc.so.6"
## print (sys.platform, os.name) ## 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) self.assertRaises(OSError, cdll.load, self.unknowndll)
def test_load_version(self): def test_load_version(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment