1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related tests with MyISAM storage engine.

This commit is contained in:
Mariusz Felisiak
2022-04-14 09:53:31 +02:00
parent e12670016b
commit 331a460f8f
6 changed files with 14 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ class TestFeatures(TestCase):
"""
All storage engines except MyISAM support transactions.
"""
del connection.features.supports_transactions
with mock.patch(
"django.db.connection.features._mysql_storage_engine", "InnoDB"
):