mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.
This commit is contained in:
parent
cec11a3336
commit
adedc31072
12 changed files with 27 additions and 34 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue