mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
[1.11.x] Fixed flake8 warning on Python 2.
This commit is contained in:
@@ -21,7 +21,7 @@ class ServerSideCursorsPostgres(TestCase):
|
||||
with connection.cursor() as cursor:
|
||||
cursor.execute('SELECT {fields} FROM pg_cursors;'.format(fields=self.cursor_fields))
|
||||
cursors = cursor.fetchall()
|
||||
return [self.PostgresCursor._make(cursor) for cursor in cursors]
|
||||
return [self.PostgresCursor._make(c) for c in cursors]
|
||||
|
||||
def test_server_side_cursor(self):
|
||||
persons = Person.objects.iterator()
|
||||
|
||||
Reference in New Issue
Block a user