summaryrefslogtreecommitdiff
path: root/tests/many_to_many
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-19 08:31:38 -0400
committerTim Graham <timograham@gmail.com>2013-10-19 08:31:38 -0400
commit96d1d4e29275f4f5900f0725975d2ad0a4d05816 (patch)
tree17b846e3b77f68fbb3b1dc7a2ff413f574c62ce1 /tests/many_to_many
parent5f52590368063fc8284e23be492d83ba751f66bf (diff)
downloaddjango-96d1d4e29275f4f5900f0725975d2ad0a4d05816.tar.gz
Removed unused local variables in tests.
Diffstat (limited to 'tests/many_to_many')
-rw-r--r--tests/many_to_many/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/many_to_many/tests.py b/tests/many_to_many/tests.py
index e6fed191fc..4a59cb49eb 100644
--- a/tests/many_to_many/tests.py
+++ b/tests/many_to_many/tests.py
@@ -56,7 +56,7 @@ class ManyToManyTests(TestCase):
with six.assertRaisesRegex(self, TypeError, "'Publication' instance expected, got <Article.*"):
a6.publications.add(a5)
# Add a Publication directly via publications.add by using keyword arguments.
- p4 = a6.publications.create(title='Highlights for Adults')
+ a6.publications.create(title='Highlights for Adults')
self.assertQuerysetEqual(a6.publications.all(),
[
'<Publication: Highlights for Adults>',
@@ -81,7 +81,7 @@ class ManyToManyTests(TestCase):
['<Publication: Science News>'])
# Adding via the other end using keywords
- new_article = self.p2.article_set.create(headline='Carbon-free diet works wonders')
+ self.p2.article_set.create(headline='Carbon-free diet works wonders')
self.assertQuerysetEqual(
self.p2.article_set.all(),
[