summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):