summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-02-14 03:28:06 +0000
committerGerrit Code Review <review@openstack.org>2014-02-14 03:28:06 +0000
commit2d2c3a910ac098a2f954d017a841aa7797782e5b (patch)
tree86228151cb11c408027a267d0bb32747a4d37c14
parent573846e01209327030db146909de03e97cd8a858 (diff)
parentd72d00297947de3d446bb42d5f3168db5c5151c0 (diff)
downloadpecan-2d2c3a910ac098a2f954d017a841aa7797782e5b.tar.gz
Merge "Cleanup the WSGI app reference from the threadlocal state on every request."
-rw-r--r--pecan/core.py1
-rw-r--r--pecan/tests/test_base.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/pecan/core.py b/pecan/core.py
index 4037a32..b9c88a1 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -598,3 +598,4 @@ class Pecan(object):
del state.request
del state.response
del state.controller
+ del state.app
diff --git a/pecan/tests/test_base.py b/pecan/tests/test_base.py
index 95c09d1..5319013 100644
--- a/pecan/tests/test_base.py
+++ b/pecan/tests/test_base.py
@@ -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):