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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user