diff options
| author | Loic Bistuer <loic.bistuer@gmail.com> | 2014-05-26 03:08:05 +0700 |
|---|---|---|
| committer | Loic Bistuer <loic.bistuer@gmail.com> | 2014-05-26 03:23:17 +0700 |
| commit | b7de5f5d3f0d895c29ed27ad872d360bf95c8a2f (patch) | |
| tree | 1fc3e60c31a251fbd51986ae2c9a5b49a98dd04c /tests/model_fields | |
| parent | 2779c299c8b7e4556b5285acc86d17560522e702 (diff) | |
Fixed a few ResourceWarning in the test suite. Refs #22680.
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/test_imagefield.py | 2 |
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, |
