From: Jan Fajerski Date: Tue, 6 Aug 2019 13:34:12 +0000 (+0200) Subject: mimic: ceph-volume broken assertion errors after pytest changes X-Git-Tag: v13.2.7~198^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a0faba51eb31d02949819607290ab4a930f6302f;p=ceph.git mimic: ceph-volume broken assertion errors after pytest changes This fixes a backported test that was not fixed on a backport. Original fix: https://github.com/ceph/ceph/pull/28948. Backport: https://github.com/ceph/ceph/pull/29243. Signed-off-by: Jan Fajerski --- diff --git a/src/ceph-volume/ceph_volume/tests/devices/lvm/strategies/test_bluestore.py b/src/ceph-volume/ceph_volume/tests/devices/lvm/strategies/test_bluestore.py index c6dd33312993..4b388e39bda4 100644 --- a/src/ceph-volume/ceph_volume/tests/devices/lvm/strategies/test_bluestore.py +++ b/src/ceph-volume/ceph_volume/tests/devices/lvm/strategies/test_bluestore.py @@ -199,4 +199,4 @@ class TestMixedTypeWithExplicitDevices(object): with pytest.raises(RuntimeError) as error: bluestore.MixedType(args, [hdd], [], [ssd]).computed['osds'][0] expected = 'Unable to use device 1.50 GB /dev/sda, LVs would be smaller than 1GB' - assert expected in str(error), str(error) + assert expected in str(error.value), str(error.value)