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
f7b5935c
Commit
f7b5935c
authored
Jun 25, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt test to change in Py3.5
parent
be92c8b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/run/test_coroutines_pep492.pyx
tests/run/test_coroutines_pep492.pyx
+3
-3
No files found.
tests/run/test_coroutines_pep492.pyx
View file @
f7b5935c
...
...
@@ -21,7 +21,7 @@ except ImportError:
def
__init__
(
self
,
gen
):
self
.
_gen
=
gen
class
GeneratorWrapper
:
class
_
GeneratorWrapper
:
def
__init__
(
self
,
gen
):
self
.
__wrapped__
=
gen
self
.
send
=
gen
.
send
...
...
@@ -76,7 +76,7 @@ class AsyncYield:
def
run_async
(
coro
):
#assert coro.__class__ is types.GeneratorType
assert
coro
.
__class__
.
__name__
in
(
'coroutine'
,
'GeneratorWrapper'
),
coro
.
__class__
.
__name__
assert
coro
.
__class__
.
__name__
in
(
'coroutine'
,
'
_
GeneratorWrapper'
),
coro
.
__class__
.
__name__
buffer
=
[]
result
=
None
...
...
@@ -90,7 +90,7 @@ def run_async(coro):
def
run_async__await__
(
coro
):
assert
coro
.
__class__
.
__name__
in
(
'coroutine'
,
'GeneratorWrapper'
),
coro
.
__class__
.
__name__
assert
coro
.
__class__
.
__name__
in
(
'coroutine'
,
'
_
GeneratorWrapper'
),
coro
.
__class__
.
__name__
aw
=
coro
.
__await__
()
buffer
=
[]
result
=
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