From 6e520d953773d25a3d3484db67feed446aca0bc1 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sat, 30 Dec 2023 12:15:13 +0100 Subject: [PATCH] Avoided nested transactions in SkippingClassTestCase. --- tests/test_utils/tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index 65a782bf87..e001e119ee 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -157,7 +157,9 @@ class SkippingTestCase(SimpleTestCase): ) -class SkippingClassTestCase(TestCase): +class SkippingClassTestCase(TransactionTestCase): + available_apps = [] + def test_skip_class_unless_db_feature(self): @skipUnlessDBFeature("__class__") class NotSkippedTests(TestCase):