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
18cebc31
Commit
18cebc31
authored
Jul 30, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tighten test assertions to assure that the exception control flow in await is correct
parent
6e3c7cee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tests/run/test_asyncgen.py
tests/run/test_asyncgen.py
+2
-1
No files found.
tests/run/test_asyncgen.py
View file @
18cebc31
...
@@ -903,9 +903,10 @@ class AsyncGenAsyncioTest(unittest.TestCase):
...
@@ -903,9 +903,10 @@ class AsyncGenAsyncioTest(unittest.TestCase):
DONE
+=
1000
DONE
+=
1000
yield
v
*
2
yield
v
*
2
finally
:
finally
:
assert
sys
.
exc_info
()[
0
]
==
ZeroDivisionError
await
asyncio
.
sleep
(
0.01
,
loop
=
self
.
loop
)
await
asyncio
.
sleep
(
0.01
,
loop
=
self
.
loop
)
await
asyncio
.
sleep
(
0.01
,
loop
=
self
.
loop
)
await
asyncio
.
sleep
(
0.01
,
loop
=
self
.
loop
)
DONE
=
1
DONE
+
=
1
async
def
run
():
async
def
run
():
g
=
gen
()
g
=
gen
()
...
...
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