diff options
author | Mehdi Abaakouk <sileht@redhat.com> | 2016-03-28 15:38:45 +0200 |
---|---|---|
committer | Mehdi Abaakouk <sileht@redhat.com> | 2016-03-28 19:02:47 +0200 |
commit | 8e78ed3b92f5937738d75715842b14dc88b45a61 (patch) | |
tree | 948e4a6eb3141c60c20071a2efa4864a7d7d8929 /src/test/pybind | |
parent | Merge pull request #8284 from yehudasa/wip-rgw-sync-fixes-5 (diff) | |
download | ceph-8e78ed3b92f5937738d75715842b14dc88b45a61.tar.xz ceph-8e78ed3b92f5937738d75715842b14dc88b45a61.zip |
pybinding: python3 fixes
This fixes a couple of issues to make test_rados.py passed again against
python 3
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
Diffstat (limited to 'src/test/pybind')
-rw-r--r-- | src/test/pybind/test_rados.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/pybind/test_rados.py b/src/test/pybind/test_rados.py index c1ce5fc6ebc..cfa5b88564a 100644 --- a/src/test/pybind/test_rados.py +++ b/src/test/pybind/test_rados.py @@ -448,12 +448,12 @@ class TestIoctx(object): with ReadOpCtx(self.ioctx) as read_op: iter, ret = self.ioctx.get_omap_vals(read_op, "", "", 4) self.ioctx.operate_read_op(read_op, "hw") - iter.next() + next(iter) eq(list(iter), [("2", b"bbb"), ("3", b"ccc"), ("4", b"\x04\x04\x04\x04")]) with ReadOpCtx(self.ioctx) as read_op: iter, ret = self.ioctx.get_omap_vals(read_op, "2", "", 4) self.ioctx.operate_read_op(read_op, "hw") - eq(("3", b"ccc"), iter.next()) + eq(("3", b"ccc"), next(iter)) eq(list(iter), [("4", b"\x04\x04\x04\x04")]) with ReadOpCtx(self.ioctx) as read_op: iter, ret = self.ioctx.get_omap_vals(read_op, "", "2", 4) |