projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d913d2
)
test fixes
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 28 Apr 2011 21:30:17 +0000
(23:30 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 28 Apr 2011 21:30:17 +0000
(23:30 +0200)
tests/run/test_raisefrom.pyx
patch
|
blob
|
history
diff --git
a/tests/run/test_raisefrom.pyx
b/tests/run/test_raisefrom.pyx
index 3a6110f3c192706dc509666e41721a0e7e742fd9..24ad529da89464cfda17c906928ea9e744abd80e 100644
(file)
--- a/
tests/run/test_raisefrom.pyx
+++ b/
tests/run/test_raisefrom.pyx
@@
-5,7
+5,7
@@
class TestCause(unittest.TestCase):
try:
raise IndexError from 5
except TypeError as e:
- self.assert
In("exception cause",
str(e))
+ self.assert
True("exception cause" in
str(e))
else:
self.fail("No exception raised")
@@
-13,7
+13,7
@@
class TestCause(unittest.TestCase):
try:
raise IndexError from KeyError
except IndexError as e:
- self.assert
IsInstance(e.__cause__, KeyError
)
+ self.assert
True(isinstance(e.__cause__, KeyError)
)
else:
self.fail("No exception raised")