Skip to content
Myr

doc reqcontext fix teardown example (#2892)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* doc reqcontext fix teardown example * remove comments

authored by Alexis Benoist · committed by Hsiaoming Yang · parent 7d9dcfa · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:docs/reqcontext.rst+1 added-2 removed
191 unmodified lines
192 print('during with block')193194 # teardown functions are called after the context with block exits195196 with app.test_client():196 with app.test_client() as client:197 client.get('/')198 # the contexts are not popped even though the request ended199 print(request.path)200201 # the contexts are popped and teardown functions are called after202 # the client with block exists203204204Signals205~~~~~~~206207If :data:`~signals.signals_available` is true, the following signals are
59 unmodified lines