1
0
mirror of https://github.com/django/django.git synced 2025-03-12 18:30:48 +00:00

Corrected test case in ExclusionConstraintTests.test_invalid_expressions().

This commit is contained in:
Sarah Boyce 2025-03-07 10:14:30 +01:00
parent bad1a18ff2
commit 647dca4132

View File

@ -309,7 +309,7 @@ class ExclusionConstraintTests(PostgreSQLTestCase):
def test_invalid_expressions(self):
msg = "The expressions must be a list of 2-tuples."
for expressions in (["foo"], ["foo"], [("foo_1", "foo_2", "foo_3")]):
for expressions in (["foo"], [("foo",)], [("foo_1", "foo_2", "foo_3")]):
with self.subTest(expressions), self.assertRaisesMessage(ValueError, msg):
ExclusionConstraint(
index_type="GIST",