summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohn Snow2015-05-22 18:01:41 +0200
committerKevin Wolf2015-06-12 15:54:00 +0200
commitff793890faeb119c8dad53b7ed614407ff7b027a (patch)
tree3658f137d8ea8a2c3df16f03d6c5d9ff942ac51c /tests
parentMerge remote-tracking branch 'remotes/lalrae/tags/mips-20150612' into staging (diff)
downloadqemu-ff793890faeb119c8dad53b7ed614407ff7b027a.tar.gz
qemu-ff793890faeb119c8dad53b7ed614407ff7b027a.tar.xz
qemu-ff793890faeb119c8dad53b7ed614407ff7b027a.zip
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/qemu-iotests/1242
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/124 b/tests/qemu-iotests/124
index 3ee78cd1f1..8abce2f869 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')