diff options
| author | Tim Graham <timograham@gmail.com> | 2026-02-09 20:28:05 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-02-10 16:06:49 -0500 |
| commit | ef46215fdecb755c0b77c47fdb8fec670abb5e8b (patch) | |
| tree | 22e756cd7b23ff5a1ad7bda04bf8145f02c1cebe /tests/test_utils | |
| parent | d007fcf7291cc3c24d4545e23c759bde22b6a8a6 (diff) | |
Added various missing test skips observed on MongoDB.
Diffstat (limited to 'tests/test_utils')
| -rw-r--r-- | tests/test_utils/test_testcase.py | 7 | ||||
| -rw-r--r-- | tests/test_utils/tests.py | 3 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_utils/test_testcase.py b/tests/test_utils/test_testcase.py index 866e0dccc6..9d1b25fb47 100644 --- a/tests/test_utils/test_testcase.py +++ b/tests/test_utils/test_testcase.py @@ -82,10 +82,9 @@ def assert_no_queries(test): return inner -# On databases with no transaction support (for instance, MySQL with the MyISAM -# engine), setUpTestData() is called before each test, so there is no need to -# clone class level test data. -@skipUnlessDBFeature("supports_transactions") +# On databases without savepoint support, setUpTestData() is called before each +# test, so there's no need to clone class-level test data. +@skipUnlessDBFeature("uses_savepoints") class TestDataTests(TestCase): # setUpTestData re-assignment are also wrapped in TestData. jim_douglas = None diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index 22b509b6b3..ef1d02cf41 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -1953,7 +1953,7 @@ class OverrideSettingsTests(SimpleTestCase): self.assertIn(expected_location, finder.locations) -@skipUnlessDBFeature("supports_transactions") +@skipUnlessDBFeature("uses_savepoints") class TestBadSetUpTestData(TestCase): """ An exception in setUpTestData() shouldn't leak a transaction which would @@ -2041,6 +2041,7 @@ class CaptureOnCommitCallbacksTests(TestCase): self.assertEqual(len(callbacks), 1) self.assertNotEqual(callbacks[0], pre_hook) + @skipUnlessDBFeature("uses_savepoints") def test_with_rolled_back_savepoint(self): with self.captureOnCommitCallbacks() as callbacks: try: |
