mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +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:
parent
5ce31d6a71
commit
275dd4ebba
29 changed files with 248 additions and 87 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue