Cleanup the WSGI app reference from the threadlocal state on every request.

Change-Id: I22f93224047e2b6fd6692423cc27f85b6261f9f8
Closes-Bug: #1279461
This commit is contained in:
Ryan Petrello
2014-02-12 18:18:23 -05:00
parent 1335f2c19d
commit d72d002979
2 changed files with 2 additions and 1 deletions

View File

@@ -598,3 +598,4 @@ class Pecan(object):
del state.request
del state.response
del state.controller
del state.app

View File

@@ -972,7 +972,7 @@ class TestThreadLocalState(PecanTestCase):
assert r.status_int == 200
assert r.body == b_('/')
assert list(state.__dict__.keys()) == ['app']
assert state.__dict__ == {}
class TestFileTypeExtensions(PecanTestCase):