1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed a few ResourceWarning in the test suite. Refs #22680.

This commit is contained in:
Loic Bistuer
2014-05-26 03:08:05 +07:00
parent 2779c299c8
commit b7de5f5d3f
3 changed files with 98 additions and 87 deletions

View File

@@ -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,