mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed a few ResourceWarning in the test suite. Refs #22680.
This commit is contained in:
parent
2779c299c8
commit
b7de5f5d3f
3 changed files with 98 additions and 87 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue