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

This commit is contained in:
Jenkins
2014-02-14 03:28:06 +00:00
committed by Gerrit Code Review
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):