Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
087783f5
Commit
087783f5
authored
Apr 28, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test fixes
parent
3d913d25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/run/test_raisefrom.pyx
tests/run/test_raisefrom.pyx
+2
-2
No files found.
tests/run/test_raisefrom.pyx
View file @
087783f5
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment