25ab4df4de
Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Alfred Wingate <parona@protonmail.com>
44 lines
1.3 KiB
Diff
44 lines
1.3 KiB
Diff
From 7dccb198dfb426f529b81a28a755f3c02f8b50cb Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Ionel=20Cristian=20M=C4=83rie=C8=99?= <contact@ionelmc.ro>
|
|
Date: Sun, 2 May 2021 09:50:43 +0300
|
|
Subject: [PATCH] Remove tornado<6 test constraint. Ref #15.
|
|
|
|
---
|
|
tests/test_integrations_py3.py | 5 ++++-
|
|
tox.ini | 3 ++-
|
|
2 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/tests/test_integrations_py3.py b/tests/test_integrations_py3.py
|
|
index e025eac..596589d 100644
|
|
--- a/tests/test_integrations_py3.py
|
|
+++ b/tests/test_integrations_py3.py
|
|
@@ -36,7 +36,10 @@ def test_decorate_tornado_coroutine():
|
|
@gen.coroutine
|
|
@debug.log(print_to=buf, module=False, stacktrace=2, result_repr=repr)
|
|
def coro():
|
|
- yield gen.Task(loop.add_timeout, timedelta(microseconds=10))
|
|
+ if hasattr(gen, 'Task'):
|
|
+ yield gen.Task(loop.add_timeout, timedelta(microseconds=10))
|
|
+ else:
|
|
+ yield gen.sleep(0.01)
|
|
return "result"
|
|
|
|
loop = ioloop.IOLoop.current()
|
|
diff --git a/tox.ini b/tox.ini
|
|
index c9cbc83..1bd1d1c 100644
|
|
--- a/tox.ini
|
|
+++ b/tox.ini
|
|
@@ -51,7 +51,8 @@ deps =
|
|
pytest-clarity
|
|
pytest-cov
|
|
pytest-travis-fold
|
|
- tornado<6.0
|
|
+ six
|
|
+ tornado
|
|
commands =
|
|
{posargs:pytest --cov --cov-report=term-missing -vv --ignore=src}
|
|
|
|
--
|
|
2.26.3
|
|
|