summaryrefslogtreecommitdiff
path: root/tests/constraints/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/constraints/tests.py')
-rw-r--r--tests/constraints/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/constraints/tests.py b/tests/constraints/tests.py
index f988121528..39b170125f 100644
--- a/tests/constraints/tests.py
+++ b/tests/constraints/tests.py
@@ -1462,7 +1462,7 @@ class UniqueConstraintTests(TestCase):
def test_requires_name(self):
msg = "A unique constraint must be named."
with self.assertRaisesMessage(ValueError, msg):
- models.UniqueConstraint(fields=["field"])
+ models.UniqueConstraint(fields=["field"], name="")
def test_database_default(self):
models.UniqueConstraint(