From a0faba51eb31d02949819607290ab4a930f6302f Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Tue, 6 Aug 2019 15:34:12 +0200 Subject: [PATCH] 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 --- .../ceph_volume/tests/devices/lvm/strategies/test_bluestore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3