diff --git a/wagtail/wagtailimages/tests/test_models.py b/wagtail/wagtailimages/tests/test_models.py index d093396990..0596536819 100644 --- a/wagtail/wagtailimages/tests/test_models.py +++ b/wagtail/wagtailimages/tests/test_models.py @@ -421,6 +421,8 @@ class TestIssue312(TestCase): for width in range(10, 100, 10): image.get_rendition('width-%d' % width) + image.delete() + # this block opens multiple database connections, which need to be closed explicitly # so that we can drop the test database at the end of the test run connection.close()