summaryrefslogtreecommitdiff
path: root/tests/queries
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2019-02-09 19:18:48 +0500
committerTim Graham <timograham@gmail.com>2019-02-09 09:18:48 -0500
commit1933e56eca1ad17de7dd133bfb7cbee9858a75a3 (patch)
tree3dbc7a8fa58cba631591ebdfa22c687948fbb887 /tests/queries
parentb1a2ad69251053a5f1ce71ffa95b188c4a765388 (diff)
Removed uneeded generator expressions and list comprehensions.
Diffstat (limited to 'tests/queries')
-rw-r--r--tests/queries/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index 60e4243315..8128deca8b 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -1935,9 +1935,9 @@ class RawQueriesTests(TestCase):
class GeneratorExpressionTests(SimpleTestCase):
def test_ticket10432(self):
- # Using an empty generator expression as the rvalue for an "__in"
+ # Using an empty iterator as the rvalue for an "__in"
# lookup is legal.
- self.assertCountEqual(Note.objects.filter(pk__in=(x for x in ())), [])
+ self.assertCountEqual(Note.objects.filter(pk__in=iter(())), [])
class ComparisonTests(TestCase):