1
0
mirror of https://github.com/django/django.git synced 2025-01-03 15:06:09 +00:00

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.
This commit is contained in:
Mariusz Felisiak 2023-10-12 20:01:44 +02:00 committed by GitHub
parent 8adc7c86ab
commit 9fd3a0ffc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -995,6 +995,7 @@ class UniqueConstraintTests(TestCase):
exclude={"name"}, exclude={"name"},
) )
@skipUnlessDBFeature("supports_table_check_constraints")
def test_validate_nullable_textfield_with_isnull_true(self): def test_validate_nullable_textfield_with_isnull_true(self):
is_null_constraint = models.UniqueConstraint( is_null_constraint = models.UniqueConstraint(
"price", "price",