On Thu, Jun 05, 2014 at 11:42:35AM +0800, Fam Zheng wrote: > @@ -48,8 +49,11 @@ class ImageCommitTestCase(iotests.QMPTestCase): > self.assert_qmp(event, 'data/device', 'drive0') > self.assert_qmp(event, 'data/offset', self.image_len) > self.assert_qmp(event, 'data/len', self.image_len) > + if need_ready: > + assert ready, "Expceting BLOCK_JOB_COMPLETED event"
s/Expceting/Expecting/ Please use TestCase.assert*() methods instead of the assert keyword: self.assertTrue(ready, msg='Expecting BLOCK_JOB_COMPLETED event') The assert keyword raises the built-in AssertionError, which may not be supported by the unittest module: https://docs.python.org/2/library/unittest.html