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 <jfajerski@suse.com>
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)