iotests: 'new' module replacement in 169
commitc1a65cba9c1b9a0ad72046dc73ab0e316b9cb7fe
authorMax Reitz <mreitz@redhat.com>
Mon, 22 Oct 2018 13:53:05 +0000 (22 14:53 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 31 Oct 2018 00:13:54 +0000 (30 21:13 -0300)
treec03add53bede8d4e7ecaedf4e55aa889692b24fb
parentbf43b29df4cdc716f4a2af98b37e206a11541d99
iotests: 'new' module replacement in 169

iotest 169 uses the 'new' module to add methods to a class.  This module
no longer exists in Python 3.  Instead, we can use a lambda.  Best of
all, this works in 2.7 just as well.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20181022135307.14398-8-mreitz@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
tests/qemu-iotests/169