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
Gwenaël Samain
cython
Commits
81d184d0
Commit
81d184d0
authored
Aug 02, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable asyncgen tests in Py<3.6 that require the newly added finalisation support
parent
e80a5086
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
tests/run/test_asyncgen.py
tests/run/test_asyncgen.py
+11
-0
No files found.
tests/run/test_asyncgen.py
View file @
81d184d0
...
...
@@ -36,6 +36,15 @@ else:
return
c
def
needs_py36_asyncio
(
f
):
if
sys
.
version_info
>=
(
3
,
6
)
or
asyncio
is
None
:
# Py<3.4 doesn't have asyncio at all => avoid having to special case 2.6's unittest below
return
f
from
unittest
import
skip
return
skip
(
"needs Python 3.6 or later"
)(
f
)
try
:
from
types
import
coroutine
as
types_coroutine
except
ImportError
:
...
...
@@ -1128,6 +1137,7 @@ class AsyncGenAsyncioTest(unittest.TestCase):
self
.
loop
.
run_until_complete
(
run
())
@
needs_py36_asyncio
def
test_async_gen_asyncio_shutdown_01
(
self
):
finalized
=
0
...
...
@@ -1157,6 +1167,7 @@ class AsyncGenAsyncioTest(unittest.TestCase):
t2
.
cancel
()
self
.
loop
.
run_until_complete
(
asyncio
.
sleep
(
0.1
,
loop
=
self
.
loop
))
@
needs_py36_asyncio
def
test_async_gen_asyncio_shutdown_02
(
self
):
logged
=
0
...
...
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