test_teardown_with_previous_exception() — flask Function Reference
Architecture documentation for the test_teardown_with_previous_exception() function in test_reqctx.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 9e78e11d_340d_9d98_b7a3_c7160a00b9e4["test_teardown_with_previous_exception()"] aea65cbf_db83_bd4f_d83f_1a35ae104254["test_reqctx.py"] 9e78e11d_340d_9d98_b7a3_c7160a00b9e4 -->|defined in| aea65cbf_db83_bd4f_d83f_1a35ae104254 style 9e78e11d_340d_9d98_b7a3_c7160a00b9e4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_reqctx.py lines 30–44
def test_teardown_with_previous_exception(app):
buffer = []
@app.teardown_request
def end_of_request(exception):
buffer.append(exception)
try:
raise Exception("dummy")
except Exception:
pass
with app.test_request_context():
assert buffer == []
assert buffer == [None]
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_teardown_with_previous_exception() do?
test_teardown_with_previous_exception() is a function in the flask codebase, defined in tests/test_reqctx.py.
Where is test_teardown_with_previous_exception() defined?
test_teardown_with_previous_exception() is defined in tests/test_reqctx.py at line 30.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free