diff options
| author | Tim Graham <timograham@gmail.com> | 2017-04-03 22:33:46 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-04-03 22:33:46 -0400 |
| commit | 7f5be2dc84fc8e7fa81e386ac85dcb65ab6c345d (patch) | |
| tree | 6b8648cc403ce2485020ddeaf04dd9a6dcc10b64 /tests | |
| parent | 76b51656e6162902daa6bf6ec3fe04b1ca960a72 (diff) | |
[1.11.x] Fixed flake8 warning on Python 2.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/backends/test_postgresql.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
