From 7c4abe2fcc073ab7e721302811b3a8f241e45876 Mon Sep 17 00:00:00 2001 From: janonymous Date: Sun, 14 Jun 2015 14:34:01 +0530 Subject: [PATCH] Replace it.next() with next(it) for py3 compat The Python 2 next() method of iterators was renamed to __next__() on Python 3. Use the builtin next() function instead which works on Python 2 and Python 3. This patch was generated by the next operation of the sixer tool: https://pypi.python.org/pypi/sixer Change-Id: I13948f73f34c396c5cb4d55b636f12b96e62f9f9 Closes-Bug: #1464935 --- manila/tests/share/drivers/emc/plugins/vnx/test_emc_vnx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manila/tests/share/drivers/emc/plugins/vnx/test_emc_vnx.py b/manila/tests/share/drivers/emc/plugins/vnx/test_emc_vnx.py index cf3dd68266..46e9b3e759 100644 --- a/manila/tests/share/drivers/emc/plugins/vnx/test_emc_vnx.py +++ b/manila/tests/share/drivers/emc/plugins/vnx/test_emc_vnx.py @@ -1143,8 +1143,8 @@ class EMCMock(mock.Mock): while True: try: - expect = self._get_req_from_call(iter_expect.next()) - actual = self._get_req_from_call(iter_actual.next()) + expect = self._get_req_from_call(next(iter_expect)) + actual = self._get_req_from_call(next(iter_actual)) except StopIteration: return True