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

This commit is contained in:
Aymeric Augustin 2013-03-11 19:42:23 +01:00
parent 9b74a8391d
commit 55a9be8ecf
1 changed files with 6 additions and 4 deletions

View File

@ -336,10 +336,12 @@ class PostgresNewConnectionTest(TestCase):
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 = {}