summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-04 15:57:04 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-11 14:48:55 +0100
commit4b31a6a9e698a26e3e359e2ccf3da1505d114cf1 (patch)
tree04aa2cfbefad45e173ea8e351839e40aad82b3a7 /tests
parente264f67174622f66503e4748e2f71c72a4a5064b (diff)
Added support for savepoints in SQLite.
Technically speaking they aren't usable yet.
Diffstat (limited to 'tests')
-rw-r--r--tests/transactions_regress/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/transactions_regress/tests.py b/tests/transactions_regress/tests.py
index 3d571fba2f..e86db4d0aa 100644
--- a/tests/transactions_regress/tests.py
+++ b/tests/transactions_regress/tests.py
@@ -309,6 +309,8 @@ class TestManyToManyAddTransaction(TransactionTestCase):
class SavepointTest(TransactionTestCase):
+ @skipIf(connection.vendor == 'sqlite',
+ "SQLite doesn't support savepoints in managed mode")
@skipUnlessDBFeature('uses_savepoints')
def test_savepoint_commit(self):
@commit_manually
@@ -324,6 +326,8 @@ class SavepointTest(TransactionTestCase):
work()
+ @skipIf(connection.vendor == 'sqlite',
+ "SQLite doesn't support savepoints in managed mode")
@skipIf(connection.vendor == 'mysql' and
connection.features._mysql_storage_engine == 'MyISAM',
"MyISAM MySQL storage engine doesn't support savepoints")