Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 55a9be8ecffee56ba9d8b52a34766b83ba5f4e16 1 parent 9b74a83
Aymeric Augustin authored March 11, 2013

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. 10  tests/backends/tests.py
10  tests/backends/tests.py
@@ -336,10 +336,12 @@ def test_connect_and_rollback(self):
336 336
                 pass
337 337
 
338 338
 
339  
-# Unfortunately with sqlite3 the in-memory test database cannot be
340  
-# closed, and so it cannot be re-opened during testing, and so we
341  
-# sadly disable this test for now.
342  
-class ConnectionCreatedSignalTest(TestCase):
  339
+# This test needs to run outside of a transaction, otherwise closing the
  340
+# connection would implicitly rollback and cause problems during teardown.
  341
+class ConnectionCreatedSignalTest(TransactionTestCase):
  342
+
  343
+    # Unfortunately with sqlite3 the in-memory test database cannot be closed,
  344
+    # and so it cannot be re-opened during testing.
343 345
     @skipUnlessDBFeature('test_db_allows_multiple_connections')
344 346
     def test_signal(self):
345 347
         data = {}

0 notes on commit 55a9be8

Please sign in to comment.
Something went wrong with that request. Please try again.