kopia lustrzana https://github.com/wagtail/wagtail
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
rodzic
09663a6653
commit
50a3eb64f0
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue