1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed flake8 warnings.

This commit is contained in:
Tim Graham
2014-09-29 08:13:40 -04:00
parent 9e8658db51
commit 4b257cf261
3 changed files with 3 additions and 3 deletions

View File

@@ -720,7 +720,7 @@ class GenericRelationTests(TestCase):
# attributes, so the following makes sense:
qs = TaggedItem.objects.filter(content_type=ct, tag='awesome').prefetch_related('content_object__read_by')
readers_of_awesome_books = {r.name for tag in qs
for r in tag.content_object.read_by.all()}
for r in tag.content_object.read_by.all()}
self.assertEqual(readers_of_awesome_books, {"me", "you", "someone"})
def test_nullable_GFK(self):