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

pull/894/head^2
Matt Westcott 2015-01-06 15:36:58 +00:00
rodzic 09663a6653
commit 50a3eb64f0
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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()