mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #32178 -- Allowed database backends to skip tests and mark expected failures.
Co-authored-by: Tim Graham <timograham@gmail.com>
This commit is contained in:
@@ -80,9 +80,6 @@ class ExplainTests(TestCase):
|
||||
|
||||
@unittest.skipUnless(connection.vendor == 'mysql', 'MariaDB and MySQL >= 8.0.18 specific.')
|
||||
def test_mysql_analyze(self):
|
||||
# Inner skip to avoid module level query for MySQL version.
|
||||
if not connection.features.supports_explain_analyze:
|
||||
raise unittest.SkipTest('MariaDB and MySQL >= 8.0.18 specific.')
|
||||
qs = Tag.objects.filter(name='test')
|
||||
with CaptureQueriesContext(connection) as captured_queries:
|
||||
qs.explain(analyze=True)
|
||||
|
||||
Reference in New Issue
Block a user