mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
parent
edee5a8de6
commit
2c69824e5a
63 changed files with 145 additions and 150 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue