mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #33476 -- Refactored code to strictly match 88 characters line length.
This commit is contained in:
@@ -50,10 +50,11 @@ class M2MRegressionTests(TestCase):
|
||||
def test_internal_related_name_not_in_error_msg(self):
|
||||
# The secret internal related names for self-referential many-to-many
|
||||
# fields shouldn't appear in the list when an error is made.
|
||||
with self.assertRaisesMessage(
|
||||
FieldError,
|
||||
"Choices are: id, name, references, related, selfreferchild, selfreferchildsibling",
|
||||
):
|
||||
msg = (
|
||||
"Choices are: id, name, references, related, selfreferchild, "
|
||||
"selfreferchildsibling"
|
||||
)
|
||||
with self.assertRaisesMessage(FieldError, msg):
|
||||
SelfRefer.objects.filter(porcupine="fred")
|
||||
|
||||
def test_m2m_inheritance_symmetry(self):
|
||||
|
||||
Reference in New Issue
Block a user