1
0
mirror of https://github.com/django/django.git synced 2025-01-28 02:59:58 +00:00

[4.2.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
This commit is contained in:
Mariusz Felisiak 2023-10-12 20:01:44 +02:00
parent e8fe48d3a0
commit b6bb2f8099

View File

@ -779,6 +779,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",