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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
765ec60a
Commit
765ec60a
authored
Jul 06, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another Py2.5 test fix
parent
b6d2b2fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/run/yield_from_pep380.pyx
tests/run/yield_from_pep380.pyx
+3
-1
No files found.
tests/run/yield_from_pep380.pyx
View file @
765ec60a
...
@@ -1006,12 +1006,14 @@ def test_delegating_generators_claim_to_be_running_close():
...
@@ -1006,12 +1006,14 @@ def test_delegating_generators_claim_to_be_running_close():
return
ret
return
ret
_next
=
next
# keep it around for Py<=2.5
def
yield_in_return
(
x
):
def
yield_in_return
(
x
):
"""
"""
>>> x = yield_in_return(range(3))
>>> x = yield_in_return(range(3))
>>> for _ in range(10):
>>> for _ in range(10):
... try:
... try:
... print(next(x))
... print(
_
next(x))
... except StopIteration:
... except StopIteration:
... if sys.version_info >= (3,3):
... if sys.version_info >= (3,3):
... print(sys.exc_info()[1].value is None)
... print(sys.exc_info()[1].value is None)
...
...
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