mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Removed uneeded generator expressions and list comprehensions.
This commit is contained in:
parent
b1a2ad6925
commit
1933e56eca
9 changed files with 16 additions and 16 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue