Skip to content

Tests failed with Tornado 6 #15

Description

@felixonmars

tornado.gen.Task was removed in Tornado 6.

=================================== FAILURES ===================================
_______________________ test_decorate_tornado_coroutine ________________________
tests/test_integrations_py3.py:43: in test_decorate_tornado_coroutine
    loop.run_sync(coro)
/usr/lib/python3.8/site-packages/tornado/ioloop.py:532: in run_sync
    return future_cell[0].result()
/usr/lib/python3.8/site-packages/tornado/gen.py:209: in wrapper
    yielded = next(result)
src/aspectlib/py35support.py:90: in advising_generator_wrapper_py35
    advice = advisor.throw(*sys.exc_info())
src/aspectlib/debug.py:220: in advising_function
    res = yield
src/aspectlib/py35support.py:88: in advising_generator_wrapper_py35
    result = yield from gen
tests/test_integrations_py3.py:39: in coro
    yield gen.Task(loop.add_timeout, timedelta(microseconds=10))
E   AttributeError: module 'tornado.gen' has no attribute 'Task'
------------------------------ Captured log call -------------------------------
CRITICAL aspectlib.debug:debug.py:218 coro()                                                        <<< aspectlib/py35support.py:79:advising_generator_wrapper_py35 < tornado/gen.py:209:wrapper
CRITICAL aspectlib.debug:debug.py:225 coro ~ raised AttributeError("module 'tornado.gen' has no attribute 'Task'")
=```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions