iotests: Modify imports for Python 3
commit2d894bee1c907399fbd59163a18e42c41daf4863
authorMax Reitz <mreitz@redhat.com>
Mon, 22 Oct 2018 13:53:06 +0000 (22 14:53 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Wed, 31 Oct 2018 00:13:54 +0000 (30 21:13 -0300)
tree89634e65be7ec206e333d52de4e260e511bef2e8
parentc1a65cba9c1b9a0ad72046dc73ab0e316b9cb7fe
iotests: Modify imports for Python 3

There are two imports that need to be modified when running the iotests
under Python 3: One is StringIO, which no longer exists; instead, the
StringIO class comes from the io module, so import it from there (and
use the BytesIO class for Python 2).  The other is the ConfigParser,
which has just been renamed to configparser.

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-9-mreitz@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
tests/qemu-iotests/iotests.py
tests/qemu-iotests/nbd-fault-injector.py