From c3cf518a804be9bf56883bf2c93c1d0229b18b8b Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 12 Oct 2023 20:01:44 +0200 Subject: [PATCH] [5.0.x] Refs #34840 -- Fixed test_validate_nullable_textfield_with_isnull_true() on databases that don's support table check constraints. Thanks Tim Graham for the report. Backport of 9fd3a0ffc8fb8e532b0d5717f99fb15aff175a6c from main --- tests/constraints/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/constraints/tests.py b/tests/constraints/tests.py index e1b95baf60..55df5975de 100644 --- a/tests/constraints/tests.py +++ b/tests/constraints/tests.py @@ -995,6 +995,7 @@ class UniqueConstraintTests(TestCase): exclude={"name"}, ) + @skipUnlessDBFeature("supports_table_check_constraints") def test_validate_nullable_textfield_with_isnull_true(self): is_null_constraint = models.UniqueConstraint( "price",