From 7f57576123b81051a5e64f7c7234153ee11f4062 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Mon, 20 Apr 2020 22:22:55 -0400 Subject: [PATCH] qa/cephfs: fix AssertionError: CommandFailedError not raised under py3 Signed-off-by: Xiubo Li --- qa/tasks/cephfs/test_volume_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/test_volume_client.py b/qa/tasks/cephfs/test_volume_client.py index b0b1b2e0fd44e..e02ba0ee76eb5 100644 --- a/qa/tasks/cephfs/test_volume_client.py +++ b/qa/tasks/cephfs/test_volume_client.py @@ -606,8 +606,10 @@ vc.disconnect() # Read existing content of the volume. self.assertListEqual(guest_mount.ls(guest_mount.mountpoint), ["data.bin"]) # Cannot write into read-only volume. - with self.assertRaises(CommandFailedError): + try: guest_mount.write_n_mb("rogue.bin", 1) + except CommandFailedError: + pass def test_get_authorized_ids(self): """ -- 2.39.5