Permalink
Browse files

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

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

0 comments on commit 55a9be8

Please sign in to comment.