Replies: 1 comment
-
I see what you're trying to do, but I'm not sure how this ever would have worked correctly (even if it appeared to work previously). The test is running in one thread. You're opening two apps, that should have different preserved contexts, in the same thread, so there is only one context. Instead, you should open each client context separately, and only for exactly how long you need it. In the example shown, you don't need to preserve contexts for either client, so you can remove the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to reproduce
Running this code raises a
LookupError: <ContextVar name='flask.request_ctx' at 0x7faa98896de0>
Going back to Flask 2.1.3 fixes the issue.
Environment:
Beta Was this translation helpful? Give feedback.
All reactions