Skip to content

Commit 51042f4

Browse files
fix issues in test_context_refcounts that were unnoticed yet as they did not make the test fail
1 parent ffd9296 commit 51042f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flask/testsuite/appctx.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ def index():
8787
with flask._app_ctx_stack.top:
8888
with flask._request_ctx_stack.top:
8989
pass
90-
self.assert_true(flask._request_ctx_stack.request.environ
90+
self.assert_true(flask._request_ctx_stack.top.request.environ
9191
['werkzeug.request'] is not None)
92+
return u''
9293
c = app.test_client()
9394
c.get('/')
9495
self.assertEqual(called, ['request', 'app'])

0 commit comments

Comments
 (0)