Re: [PATCH v2 13/17] iotests/migration-permissions: use assertRaises() for qemu_io() negative test

2022-03-24 Thread Eric Blake
On Thu, Mar 24, 2022 at 02:30:14PM -0400, John Snow wrote: > Modify this test to use assertRaises for its negative testing of > qemu_io. If the exception raised does not match the one we tell it to > expect, we get *that* exception unhandled. If we get no exception, we > get a unittest assertion fa

[PATCH v2 13/17] iotests/migration-permissions: use assertRaises() for qemu_io() negative test

2022-03-24 Thread John Snow
Modify this test to use assertRaises for its negative testing of qemu_io. If the exception raised does not match the one we tell it to expect, we get *that* exception unhandled. If we get no exception, we get a unittest assertion failure and the provided emsg printed to screen. If we get the Calle