mirror of
https://github.com/django/django.git
synced 2025-08-17 09:10:39 +00:00
[5.2.x] Applied Black's 2025 stable style.
https://github.com/psf/black/releases/tag/25.1.0
Backport of ff3aaf036f
from main
This commit is contained in:
parent
b8ceda4a51
commit
53bb1d5a24
46 changed files with 213 additions and 185 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue