From b8759093d8eaea32c8d177615df7de559b6571c7 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 11 Apr 2022 12:58:01 +0200 Subject: [PATCH] Removed DatabaseFeatures.validates_explain_options. Always True since 6723a26e59b0b5429a0c5873941e01a2e1bdbb81. --- django/db/backends/base/features.py | 4 ---- tests/queries/test_explain.py | 1 - 2 files changed, 5 deletions(-) diff --git a/django/db/backends/base/features.py b/django/db/backends/base/features.py index ebf29e80d6..a96dbe1b08 100644 --- a/django/db/backends/base/features.py +++ b/django/db/backends/base/features.py @@ -263,10 +263,6 @@ class BaseDatabaseFeatures: # What formats does the backend EXPLAIN syntax support? supported_explain_formats = set() - # Does DatabaseOperations.explain_query_prefix() raise ValueError if - # unknown kwargs are passed to QuerySet.explain()? - validates_explain_options = True - # Does the backend support the default parameter in lead() and lag()? supports_default_in_lead_lag = True diff --git a/tests/queries/test_explain.py b/tests/queries/test_explain.py index 9eb4347323..f8ec9f445d 100644 --- a/tests/queries/test_explain.py +++ b/tests/queries/test_explain.py @@ -57,7 +57,6 @@ class ExplainTests(TestCase): f"QuerySet.explain() result is not valid JSON: {e}" ) - @skipUnlessDBFeature("validates_explain_options") def test_unknown_options(self): with self.assertRaisesMessage(ValueError, "Unknown options: TEST, TEST2"): Tag.objects.explain(**{"TEST": 1, "TEST2": 1})