Skip to content

Commit

Permalink
Fix test for Py3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Jan 28, 2013
1 parent 2f7923b commit 95084c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def test_response_is_iterable(self):
r = requests.Response()
io = StringIO.StringIO('abc')
r.raw = io
self.assertTrue(iter(r).next())
self.assertTrue(next(iter(r)))
io.close()

if __name__ == '__main__':
Expand Down

0 comments on commit 95084c9

Please sign in to comment.