From 7f3153c5ea7570245cf1ce0151584ef5f2af7286 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Mon, 2 Jun 2014 00:21:01 +0200 Subject: [PATCH] Python 3: use next(foo) instead of foo.next() This is compatible with both versions of Python. Change-Id: I50f9b2fa0c2333010c10eb4db34d972aa379f0e3 --- tests/v1/test_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/v1/test_images.py b/tests/v1/test_images.py index acc8c5cd..63df002e 100644 --- a/tests/v1/test_images.py +++ b/tests/v1/test_images.py @@ -759,7 +759,7 @@ class ImageManagerTest(testtools.TestCase): 'return_req_id': [], } images = self.mgr.list(**fields) - images.next() + next(images) self.assertEqual(fields['return_req_id'], ['req-1234']) def test_image_list_with_notfound_owner(self):