diff options
Diffstat (limited to 'src/test')
-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) |