summaryrefslogtreecommitdiff
path: root/tests/m2m_regress
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-04 08:08:27 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch)
treefa50869f5614295f462d9bf77fec59365c621609 /tests/m2m_regress
parent9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff)
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'tests/m2m_regress')
-rw-r--r--tests/m2m_regress/tests.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/m2m_regress/tests.py b/tests/m2m_regress/tests.py
index 02d293f160..d5ad559e85 100644
--- a/tests/m2m_regress/tests.py
+++ b/tests/m2m_regress/tests.py
@@ -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):