Skip to content
Myr

Merge pull request #739 from untitaker/sprint-branch

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

Fix leak in leak detection code

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parents 4bea6bb, 3d36d6e · Browse files · 1 file+4 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:flask/testsuite/__init__.py+4 added-1 removed
114 unmodified lines
115116 def ensure_clean_request_context(self):117 # make sure we're not leaking a request context since we are118 # testing flask internally in debug mode in a few cases119 self.assert_equal(flask._request_ctx_stack.top, None)119 leaks = []120 while flask._request_ctx_stack.top is not None:121 leaks.append(flask._request_ctx_stack.pop())122 self.assert_equal(leaks, [])123124 def setup(self):125 pass126
120 unmodified lines