Permalink
Browse files

Fix test for Py3.

  • Loading branch information...
Lukasa committed Jan 26, 2013
1 parent 2f7923b commit 95084c9ca8b3c33d6f16bf63f9c041aa6e442641
Showing with 1 addition and 1 deletion.
  1. +1 −1 test_requests.py
View
@@ -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__':

0 comments on commit 95084c9

Please sign in to comment.