diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-03-07 10:14:30 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-03-07 11:28:00 +0100 |
| commit | 647dca413262d8778471479e789f96099044af39 (patch) | |
| tree | 16f558e93aec7ce94c678096ccdff08cc50be11e /tests/postgres_tests | |
| parent | bad1a18ff28a671f2fdfd447bdf8f43602f882c2 (diff) | |
Corrected test case in ExclusionConstraintTests.test_invalid_expressions().
Diffstat (limited to 'tests/postgres_tests')
| -rw-r--r-- | tests/postgres_tests/test_constraints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/postgres_tests/test_constraints.py b/tests/postgres_tests/test_constraints.py index 2cc3de5f4d..96b5d39092 100644 --- a/tests/postgres_tests/test_constraints.py +++ b/tests/postgres_tests/test_constraints.py @@ -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", |
