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