1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Removed uneeded generator expressions and list comprehensions.

This commit is contained in:
Sergey Fedoseev
2019-02-09 19:18:48 +05:00
committed by Tim Graham
parent b1a2ad6925
commit 1933e56eca
9 changed files with 16 additions and 16 deletions

View File

@@ -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):