Raise a runtime error if run_async is called without real ContextVars
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Werkzeug offers a ContextVar replacement for Python < 3.7, however it doesn't work across asyncio tasks, hence it makes sense to error out rather than find there are odd bugs. Note the docs build requires the latest (dev) Werkzeug due to this change (to import ContextVar from werkzeug.local).
authored by pgjones · committed by David Lord · parent 6979265 · Browse files · 3 files+19 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+19 added−1 removed
- tests:+9 added−0 removed
- other:+10 added−1 removed