]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
iotests: remove assertIsNotNone call
authorJohn Snow <jsnow@redhat.com>
Fri, 22 May 2015 16:01:41 +0000 (12:01 -0400)
committerKevin Wolf <kwolf@redhat.com>
Fri, 12 Jun 2015 13:54:00 +0000 (15:54 +0200)
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>
tests/qemu-iotests/124

index 3ee78cd1f1d1c00174b02b6364cf43798c0e359b..8abce2f86943d6b6cdfc47019b16d8dc1e595e6e 100644 (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')