Skip to content

Commit

Permalink
fixing response iterator in swift3 test
Browse files Browse the repository at this point in the history
Change-Id: I6e58eed72aa3d1835b1a9ef99014d27a7dfd810e
  • Loading branch information
sasimpson committed Apr 4, 2012
1 parent 848b3f0 commit f26d2e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/common/middleware/test_swift3.py
Expand Up @@ -134,8 +134,8 @@ def __call__(self, env, start_response):
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':
Expand Down

0 comments on commit f26d2e5

Please sign in to comment.