]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/pybind/test_rados: execute takes a bytes (not str) payload
authorSage Weil <sage@redhat.com>
Fri, 13 Dec 2019 17:14:30 +0000 (11:14 -0600)
committerSage Weil <sage@redhat.com>
Fri, 13 Dec 2019 17:14:30 +0000 (11:14 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/pybind/test_rados.py

index 3d32a379c94fbd7f8d06d33b0f3be5fbd61f1617..cfbcad08cb03dbb0656c66234c5aa64e243e223a 100644 (file)
@@ -534,7 +534,7 @@ class TestIoctx(object):
 
     def test_execute_op(self):
         with WriteOpCtx() as write_op:
-            write_op.execute("hello", "record_hello", "ebs")
+            write_op.execute("hello", "record_hello", b"ebs")
             self.ioctx.operate_write_op(write_op, "object")
         eq(self.ioctx.read('object'), b"Hello, ebs!")