summaryrefslogtreecommitdiff
path: root/tests/many_to_many/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/many_to_many/tests.py')
-rw-r--r--tests/many_to_many/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/many_to_many/tests.py b/tests/many_to_many/tests.py
index 098cd29e46..f0156bbe8d 100644
--- a/tests/many_to_many/tests.py
+++ b/tests/many_to_many/tests.py
@@ -63,7 +63,8 @@ class ManyToManyTests(TestCase):
)
# Adding an object of the wrong type raises TypeError
- with self.assertRaisesMessage(TypeError, "'Publication' instance expected, got <Article"):
+ msg = "'Publication' instance expected, got <Article: Django lets you create Web apps easily>"
+ with self.assertRaisesMessage(TypeError, msg):
with transaction.atomic():
a6.publications.add(a5)