mirror of https://gitee.com/openkylin/qemu.git
iotests: remove assertIsNotNone call
RHEL6 doesn't have Python 2.7, so replace this call with assertNotEqual(x, None) which will work just as well. Reported-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
4cb618abc1
commit
ff793890fa
|
@ -125,7 +125,7 @@ class TestIncrementalBackup(iotests.QMPTestCase):
|
|||
|
||||
event = self.vm.event_wait(name="BLOCK_JOB_COMPLETED",
|
||||
match={'data': {'device': kwargs['device']}})
|
||||
self.assertIsNotNone(event)
|
||||
self.assertNotEqual(event, None)
|
||||
|
||||
try:
|
||||
failure = self.dictpath(event, 'data/error')
|
||||
|
|
Loading…
Reference in New Issue