diff options
Diffstat (limited to 'tests/postgres_tests')
| -rw-r--r-- | tests/postgres_tests/test_constraints.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/postgres_tests/test_constraints.py b/tests/postgres_tests/test_constraints.py index 2b6df7d5f5..844c04cd6d 100644 --- a/tests/postgres_tests/test_constraints.py +++ b/tests/postgres_tests/test_constraints.py @@ -156,9 +156,7 @@ class SchemaTests(PostgreSQLTestCase): check=Q(ints__startswith__gte=0), name="ints_positive_range", ) - msg = f"Constraint “{constraint.name}” is violated." - with self.assertRaisesMessage(ValidationError, msg): - constraint.validate(RangesModel, RangesModel()) + constraint.validate(RangesModel, RangesModel()) def test_opclass(self): constraint = UniqueConstraint( |
