Skip to content
Myr

fix issues in test_context_refcounts that were unnoticed yet as they did not make the test fail

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

authored by Thomas Waldmann · committed by Thomas Waldmann · parent ffd9296 · Browse files · 1 file+2 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

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:flask/testsuite/appctx.py+2 added-1 removed
85 unmodified lines
86 def index():87 with flask._app_ctx_stack.top:88 with flask._request_ctx_stack.top:89 pass90 self.assert_true(flask._request_ctx_stack.request.environ90 self.assert_true(flask._request_ctx_stack.top.request.environ91 ['werkzeug.request'] is not None)92 return u''93 c = app.test_client()94 c.get('/')95 self.assertEqual(called, ['request', 'app'])96
5 unmodified lines