mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Removed uneeded generator expressions and list comprehensions.
This commit is contained in:
committed by
Tim Graham
parent
b1a2ad6925
commit
1933e56eca
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user