summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-11 19:42:23 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-11 19:42:59 +0100
commit55a9be8ecffee56ba9d8b52a34766b83ba5f4e16 (patch)
tree9ad37abcfb4bbc7055af2783abef462c8725092b /tests
parent9b74a8391de81312a6d2f97ce40f3ed856285d9f (diff)
Ran a test that closes the database connection outside of a transaction.
Diffstat (limited to 'tests')
-rw-r--r--tests/backends/tests.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py
index c7f09013d4..cec2267450 100644
--- a/tests/backends/tests.py
+++ b/tests/backends/tests.py
@@ -336,10 +336,12 @@ class PostgresNewConnectionTest(TestCase):
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 = {}