summaryrefslogtreecommitdiff
path: root/tests/annotations
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2017-06-01 16:08:59 -0700
committerTim Graham <timograham@gmail.com>2017-06-01 19:08:59 -0400
commit2c69824e5ab5ddf4b9964c4cf9f9e16ff3bb7929 (patch)
tree65b8e60b858e4f073a04c2bbf976b8f43fe0cff6 /tests/annotations
parentedee5a8de6afb34a9247de2bb73ab66397a6e573 (diff)
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
Diffstat (limited to 'tests/annotations')
-rw-r--r--tests/annotations/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py
index 2ad395e65c..981e73e43e 100644
--- a/tests/annotations/tests.py
+++ b/tests/annotations/tests.py
@@ -197,7 +197,7 @@ class NonAggregateAnnotationTestCase(TestCase):
name_lower=Lower('last_name'),
).distinct('name_lower')
- self.assertEqual(set(p.last_name for p in people), {'Stark', 'Roosevelt'})
+ self.assertEqual({p.last_name for p in people}, {'Stark', 'Roosevelt'})
self.assertEqual(len(people), 2)
people2 = Employee.objects.annotate(