Tests failing with Tornado 6.x version due to missing `stack_context`
See original GitHub issueTornado removed the stack_context
module (see https://github.com/tornadoweb/tornado/commit/45d9f6d0a23f3ca90d23e00e5c1ed40b955b335d ) so current test runs are failing with:
==================================== ERRORS ====================================
____________ ERROR collecting tests/scope_managers/test_tornado.py _____________
tests/scope_managers/test_tornado.py:27: in <module>
from opentracing.scope_managers.tornado import TornadoScopeManager
opentracing/scope_managers/tornado.py:24: in <module>
import tornado.stack_context
E ModuleNotFoundError: No module named 'tornado.stack_context'
===================== 104 passed, 1 error in 0.89 seconds ======================
make: *** [test] Error 1
The command "make test testbed lint" exited with 2.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Stack context no longer works with async methods on 5.0.2
The tornado.stack_context module is deprecated and will be removed in Tornado 6.0. The reason for this is that it is not feasible to...
Read more >tornado.stack_context — Exception handling across ...
Run this callback when the StackContext is no longer needed to ensure that it is not propagated any further (note that deactivating a...
Read more >Tornado Documentation - Read the Docs
Tornado is different from most Python web frameworks. It is not based on WSGI, and it is typically run with only one thread...
Read more >tornadoweb/tornado - Gitter
I am trying to attach an async function to tornado's IOloop and have it be spawned periodically. However, there is no periodic version...
Read more >Tornado unit test with web sockets - what about stack context?
I would like to use AsyncTestCase with web sockets, The client is not a problem, i can send and receive messages without problems....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
we’re already testing with
tornado >= 6
, and all tests are green in master, so I don’t think this is an issue any longer.Should remind ’tornado<6,>=4.1‘