iotests: remove assertIsNotNone call
PATCH 1/1 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 <[email protected]>
Signed-off-by John Snow <[email protected]>
--- tests/qemu-iotests/124 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/124 +1 -1
@@ -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')
Signature · 1 line
2.1.0
Quoted 8 lines · John Snow
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 <[email protected]>Signed-off-by John Snow <[email protected]>--- tests/qemu-iotests/124 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Stefan Hajnoczi <[email protected]>
Kevin Wolf
AppliedAm 22.05.2015 um 18:01 hat John Snow geschrieben:
Quoted 5 lines
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 <[email protected]>Signed-off-by John Snow <[email protected]>
Thanks, applied to the block branch.
Kevin