Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7dccb19

Browse files
committed
Remove tornado<6 test constraint. Ref #15.
1 parent 24e6e27 commit 7dccb19

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

‎tests/test_integrations_py3.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ def test_decorate_tornado_coroutine():
3636
@gen.coroutine
3737
@debug.log(print_to=buf, module=False, stacktrace=2, result_repr=repr)
3838
def coro():
39-
yield gen.Task(loop.add_timeout, timedelta(microseconds=10))
39+
if hasattr(gen, 'Task'):
40+
yield gen.Task(loop.add_timeout, timedelta(microseconds=10))
41+
else:
42+
yield gen.sleep(0.01)
4043
return "result"
4144

4245
loop = ioloop.IOLoop.current()

‎tox.ini‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ deps =
5151
pytest-clarity
5252
pytest-cov
5353
pytest-travis-fold
54-
tornado<6.0
54+
six
55+
tornado
5556
commands =
5657
{posargs:pytest --cov --cov-report=term-missing -vv --ignore=src}
5758

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /