diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-14 09:53:31 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-18 07:05:52 +0200 |
commit | 331a460f8f2e4f447b68fba491464b68c9b21fd1 (patch) | |
tree | ca32188e183f2d1bd28c7d8a96e3ed63dbda04de /tests/select_for_update | |
parent | e12670016bbcebcc0d89c2ac4a0121951181fbae (diff) | |
download | django-331a460f8f2e4f447b68fba491464b68c9b21fd1.tar.gz |
Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related tests with MyISAM storage engine.
Diffstat (limited to 'tests/select_for_update')
-rw-r--r-- | tests/select_for_update/tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/select_for_update/tests.py b/tests/select_for_update/tests.py index 0251014541..5f5ada8939 100644 --- a/tests/select_for_update/tests.py +++ b/tests/select_for_update/tests.py @@ -291,7 +291,7 @@ class SelectForUpdateTests(TransactionTestCase): qs = Person.objects.select_for_update(of=("self", "born")) self.assertIs(qs.exists(), True) - @skipUnlessDBFeature("has_select_for_update_nowait") + @skipUnlessDBFeature("has_select_for_update_nowait", "supports_transactions") def test_nowait_raises_error_on_block(self): """ If nowait is specified, we expect an error to be raised rather @@ -312,7 +312,7 @@ class SelectForUpdateTests(TransactionTestCase): self.end_blocking_transaction() self.assertIsInstance(status[-1], DatabaseError) - @skipUnlessDBFeature("has_select_for_update_skip_locked") + @skipUnlessDBFeature("has_select_for_update_skip_locked", "supports_transactions") def test_skip_locked_skips_locked_rows(self): """ If skip_locked is specified, the locked row is skipped resulting in @@ -599,7 +599,7 @@ class SelectForUpdateTests(TransactionTestCase): p = Person.objects.get(pk=self.person.pk) self.assertEqual("Fred", p.name) - @skipUnlessDBFeature("has_select_for_update") + @skipUnlessDBFeature("has_select_for_update", "supports_transactions") def test_raw_lock_not_available(self): """ Running a raw query which can't obtain a FOR UPDATE lock raises |