]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: fix AssertionError: CommandFailedError not raised under py3
authorXiubo Li <xiubli@redhat.com>
Tue, 21 Apr 2020 02:22:55 +0000 (22:22 -0400)
committerXiubo Li <xiubli@redhat.com>
Sat, 25 Apr 2020 10:21:54 +0000 (06:21 -0400)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/test_volume_client.py

index b0b1b2e0fd44ee0dc014e8f502969b6896a82f43..e02ba0ee76eb52f8025bba0237dfa412c463a568 100644 (file)
@@ -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):
         """