mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-05 05:57:40 -07:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue