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:
John Snow 2015-05-22 12:01:41 -04:00 committed by Kevin Wolf
parent 4cb618abc1
commit ff793890fa
1 changed files with 1 additions and 1 deletions

View File

@ -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')