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
ba03c237
Commit
ba03c237
authored
Aug 25, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around test failure in Py2.x.
parent
c0724860
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/run/generators_py.py
tests/run/generators_py.py
+3
-1
No files found.
tests/run/generators_py.py
View file @
ba03c237
...
@@ -151,6 +151,7 @@ def check_throw():
...
@@ -151,6 +151,7 @@ def check_throw():
def
check_yield_in_except
():
def
check_yield_in_except
():
"""
"""
>>> if sys.version_info[0] == 2: sys.exc_clear()
>>> try:
>>> try:
... raise TypeError("RAISED !")
... raise TypeError("RAISED !")
... except TypeError as orig_exc:
... except TypeError as orig_exc:
...
@@ -174,6 +175,7 @@ def check_yield_in_except():
...
@@ -174,6 +175,7 @@ def check_yield_in_except():
except
ValueError
as
exc
:
except
ValueError
as
exc
:
assert
sys
.
exc_info
()[
1
]
is
exc
,
sys
.
exc_info
()
assert
sys
.
exc_info
()[
1
]
is
exc
,
sys
.
exc_info
()
yield
yield
if
cython
.
compiled
or
sys
.
version_info
[
0
]
>
2
:
assert
sys
.
exc_info
()[
1
]
is
exc
,
sys
.
exc_info
()
assert
sys
.
exc_info
()[
1
]
is
exc
,
sys
.
exc_info
()
...
...
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