Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ran a test that closes the database connection outside of a transaction.

  • Loading branch information...
commit 55a9be8ecffee56ba9d8b52a34766b83ba5f4e16 1 parent 9b74a83
@aaugustin aaugustin authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 tests/backends/tests.py
View
10 tests/backends/tests.py
@@ -336,10 +336,12 @@ def test_connect_and_rollback(self):
pass
-# Unfortunately with sqlite3 the in-memory test database cannot be
-# closed, and so it cannot be re-opened during testing, and so we
-# sadly disable this test for now.
-class ConnectionCreatedSignalTest(TestCase):
+# This test needs to run outside of a transaction, otherwise closing the
+# connection would implicitly rollback and cause problems during teardown.
+class ConnectionCreatedSignalTest(TransactionTestCase):
+
+ # Unfortunately with sqlite3 the in-memory test database cannot be closed,
+ # and so it cannot be re-opened during testing.
@skipUnlessDBFeature('test_db_allows_multiple_connections')
def test_signal(self):
data = {}
Please sign in to comment.
Something went wrong with that request. Please try again.