Merge "Cleanup the WSGI app reference from the threadlocal state on every request."
This commit is contained in:
@@ -598,3 +598,4 @@ class Pecan(object):
|
||||
del state.request
|
||||
del state.response
|
||||
del state.controller
|
||||
del state.app
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user