summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2012-05-16 17:46:30 -0400
committerTres Seaver <tseaver@palladion.com>2012-05-16 17:46:30 -0400
commit68eea7d468b1a53f6ee69f19db44e5c60a563c87 (patch)
tree0648632c35ecc220e7ded8cc405a2979584add6f
parentc9888fcafe4b78924fc0f8b55c4730667bba8558 (diff)
downloadpyramid-68eea7d468b1a53f6ee69f19db44e5c60a563c87.tar.gz
pyramid-68eea7d468b1a53f6ee69f19db44e5c60a563c87.tar.bz2
pyramid-68eea7d468b1a53f6ee69f19db44e5c60a563c87.zip
Fix resource leak warning under Py3k.
-rw-r--r--pyramid/tests/test_response.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyramid/tests/test_response.py b/pyramid/tests/test_response.py
index 03d96c1c4..e6d90f979 100644
--- a/pyramid/tests/test_response.py
+++ b/pyramid/tests/test_response.py
@@ -31,11 +31,13 @@ class TestFileResponse(unittest.TestCase):
path = self._getPath()
r = self._makeOne(path, content_type='image/jpeg')
self.assertEqual(r.content_type, 'image/jpeg')
+ r.app_iter.close()
def test_without_content_type(self):
path = self._getPath()
r = self._makeOne(path)
self.assertEqual(r.content_type, 'text/plain')
+ r.app_iter.close()
class TestFileIter(unittest.TestCase):
def _makeOne(self, file, block_size):