mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 17:23:15 +00:00
Clean up image records created in test_duplicate_filters; we can't rely on the usual transaction logic to do this when using multiple threads. Fixes #892
This commit is contained in:
parent
09663a6653
commit
50a3eb64f0
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue