From: John Snow Date: Fri, 22 May 2015 16:01:41 +0000 (-0400) Subject: iotests: remove assertIsNotNone call X-Git-Tag: v2.4.0-rc0~75^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff793890faeb119c8dad53b7ed614407ff7b027a;p=thirdparty%2Fqemu.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 Signed-off-by: John Snow Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- diff --git a/tests/qemu-iotests/124 b/tests/qemu-iotests/124 index 3ee78cd1f1d..8abce2f8694 100644 --- a/tests/qemu-iotests/124 +++ b/tests/qemu-iotests/124 @@ -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')