summaryrefslogtreecommitdiff
path: root/tests/queries
diff options
context:
space:
mode:
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):