From f26d2e5f99ff402910407165ae228025991151b9 Mon Sep 17 00:00:00 2001 From: Scott Simpson Date: Wed, 4 Apr 2012 10:44:43 -0500 Subject: [PATCH] fixing response iterator in swift3 test Change-Id: I6e58eed72aa3d1835b1a9ef99014d27a7dfd810e --- test/unit/common/middleware/test_swift3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/common/middleware/test_swift3.py b/test/unit/common/middleware/test_swift3.py index 29daf8335e..4e82366648 100644 --- a/test/unit/common/middleware/test_swift3.py +++ b/test/unit/common/middleware/test_swift3.py @@ -134,8 +134,8 @@ class FakeAppObject(FakeApp): if 'HTTP_RANGE' in env: resp = Response(body=self.object_body, conditional_response=True) - iter = resp(env, start_response) - return iter.pop() + resp_iter = iter(resp(env, start_response)) + return resp_iter.next() start_response(Response().status, self.response_headers.items()) if env['REQUEST_METHOD'] == 'GET':