summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-09-29 08:13:40 -0400
committerTim Graham <timograham@gmail.com>2014-09-29 08:13:40 -0400
commit4b257cf26151df1f725b26e699d896c95eb20215 (patch)
treed4f2543d45ae0585be0d65aedcd31c755f6fa3e0
parent9e8658db51376fec3300461774d8e4654d643c5f (diff)
Fixed flake8 warnings.
-rw-r--r--tests/introspection/tests.py2
-rw-r--r--tests/prefetch_related/tests.py2
-rw-r--r--tests/test_client_regress/tests.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py
index 9fc99589a8..201d832e2d 100644
--- a/tests/introspection/tests.py
+++ b/tests/introspection/tests.py
@@ -130,7 +130,7 @@ class IntrospectionTests(TestCase):
self.assertEqual(
set(key_columns),
{('reporter_id', Reporter._meta.db_table, 'id'),
- ('response_to_id', Article._meta.db_table, 'id')})
+ ('response_to_id', Article._meta.db_table, 'id')})
def test_get_primary_key_column(self):
with connection.cursor() as cursor:
diff --git a/tests/prefetch_related/tests.py b/tests/prefetch_related/tests.py
index e04b823726..decadd83a2 100644
--- a/tests/prefetch_related/tests.py
+++ b/tests/prefetch_related/tests.py
@@ -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):
diff --git a/tests/test_client_regress/tests.py b/tests/test_client_regress/tests.py
index 07bfb91783..e5dfffe570 100644
--- a/tests/test_client_regress/tests.py
+++ b/tests/test_client_regress/tests.py
@@ -994,7 +994,7 @@ class ContextTests(TestCase):
# None, True and False are builtins of BaseContext, and present
# in every Context without needing to be added.
self.assertEqual({'None', 'True', 'False', 'hello', 'goodbye',
- 'python', 'dolly'},
+ 'python', 'dolly'},
l.keys())
def test_15368(self):