From 68eea7d468b1a53f6ee69f19db44e5c60a563c87 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Wed, 16 May 2012 17:46:30 -0400 Subject: Fix resource leak warning under Py3k. --- pyramid/tests/test_response.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- cgit v1.2.3