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,