projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
314861c
)
Output more info when the test fails.
author
Thomas Heller
<theller@ctypes.org>
Thu, 30 Mar 2006 17:49:55 +0000
(17:49 +0000)
committer
Thomas Heller
<theller@ctypes.org>
Thu, 30 Mar 2006 17:49:55 +0000
(17:49 +0000)
Lib/ctypes/test/test_loading.py
patch
|
blob
|
history
diff --git
a/Lib/ctypes/test/test_loading.py
b/Lib/ctypes/test/test_loading.py
index 5a76bb4cfdad63f4c76ded8f38be7df07d87a283..34f74963da60896a262076cd5161ceee68a10f98 100644
(file)
--- 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):