Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.

This commit is contained in:
Tim Graham 2013-10-10 11:07:48 -04:00
parent cec11a3336
commit adedc31072
12 changed files with 27 additions and 34 deletions

View file

@ -74,7 +74,7 @@ class RelatedObjectTests(TestCase):
lambda i: i.num
)
class RelatedObjectTests(TestCase):
class RelatedObjectUnicodeTests(TestCase):
def test_m2m_with_unicode_reference(self):
"""
Regression test for #6045: references to other models can be unicode
@ -85,4 +85,3 @@ class RelatedObjectTests(TestCase):
m2.others.add(m1) # used to cause an error (see ticket #6045)
m2.save()
list(m2.others.all()) # Force retrieval.