summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
Diffstat (limited to 'tests/model_fields')
-rw-r--r--tests/model_fields/test_imagefield.py2
1 files changed, 2 insertions, 0 deletions
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,