From b7de5f5d3f0d895c29ed27ad872d360bf95c8a2f Mon Sep 17 00:00:00 2001 From: Loic Bistuer Date: Mon, 26 May 2014 03:08:05 +0700 Subject: Fixed a few ResourceWarning in the test suite. Refs #22680. --- tests/model_fields/test_imagefield.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/model_fields') diff --git a/tests/model_fields/test_imagefield.py b/tests/model_fields/test_imagefield.py index be8584a571..7389573a16 100644 --- a/tests/model_fields/test_imagefield.py +++ b/tests/model_fields/test_imagefield.py @@ -58,6 +58,8 @@ class ImageFieldTestMixin(object): """ Removes temp directory and all its contents. """ + self.file1.close() + self.file2.close() shutil.rmtree(temp_storage_dir) def check_dimensions(self, instance, width, height, -- cgit v1.3