diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2014-05-25 23:14:50 +0200 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2014-05-25 23:15:31 +0200 |
| commit | 1992d55eb3731bccef549c2cede08cfcca1309de (patch) | |
| tree | e06ec6f2451da7ffe8386378e67c54e7cebae84d /tests/view_tests | |
| parent | 0c685ab64fcfb46bcd8cfa9b2d2a22d94f6223b3 (diff) | |
[1.7.x] Fixed a few warnings in the testsuite.
Backport of 536ebaa048f69c18aa36448074f65f2741e35df5 from master.
Diffstat (limited to 'tests/view_tests')
| -rw-r--r-- | tests/view_tests/tests/test_static.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/view_tests/tests/test_static.py b/tests/view_tests/tests/test_static.py index 6b2d961c5e..4aa4f9be0c 100644 --- a/tests/view_tests/tests/test_static.py +++ b/tests/view_tests/tests/test_static.py @@ -36,6 +36,7 @@ class StaticTests(SimpleTestCase): def test_unknown_mime_type(self): response = self.client.get('/%s/file.unknown' % self.prefix) self.assertEqual('application/octet-stream', response['Content-Type']) + response.close() def test_copes_with_empty_path_component(self): file_name = 'file.txt' |
