diff options
Diffstat (limited to 'tests/qemu-iotests/139')
-rwxr-xr-x | tests/qemu-iotests/139 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/139 b/tests/qemu-iotests/139 index cc7fe33..62402c1 100755 --- a/tests/qemu-iotests/139 +++ b/tests/qemu-iotests/139 @@ -51,7 +51,7 @@ class TestBlockdevDel(iotests.QMPTestCase): # Check whether a BlockDriverState exists def checkBlockDriverState(self, node, must_exist = True): result = self.vm.qmp('query-named-block-nodes') - nodes = filter(lambda x: x['node-name'] == node, result['return']) + nodes = [x for x in result['return'] if x['node-name'] == node] self.assertLessEqual(len(nodes), 1) self.assertEqual(must_exist, len(nodes) == 1) |