From 7f5be2dc84fc8e7fa81e386ac85dcb65ab6c345d Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 3 Apr 2017 22:33:46 -0400 Subject: [PATCH] [1.11.x] Fixed flake8 warning on Python 2. --- tests/backends/test_postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/backends/test_postgresql.py b/tests/backends/test_postgresql.py index 024fc1add3..61f881a42a 100644 --- a/tests/backends/test_postgresql.py +++ b/tests/backends/test_postgresql.py @@ -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()