From b9b88b0cdf70190dee5c7d31a83efb1cae888a63 Mon Sep 17 00:00:00 2001 From: Alexis Benoist Date: Fri, 24 Aug 2018 17:12:15 +0200 Subject: [PATCH] doc reqcontext fix teardown example (#2892) * doc reqcontext fix teardown example * remove comments --- docs/reqcontext.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/reqcontext.rst b/docs/reqcontext.rst index 2724fe0c..5dad6fbf 100644 --- a/docs/reqcontext.rst +++ b/docs/reqcontext.rst @@ -193,7 +193,7 @@ contexts until the with block exits. # teardown functions are called after the context with block exits - with app.test_client(): + with app.test_client() as client: client.get('/') # the contexts are not popped even though the request ended print(request.path) @@ -201,7 +201,6 @@ contexts until the with block exits. # the contexts are popped and teardown functions are called after # the client with block exists - Signals ~~~~~~~