image-fuzzer: Use io.StringIO
commit8353546de54a6b1143ed23f62c976a986369fcf1
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 16 Oct 2019 19:24:24 +0000 (16 16:24 -0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 5 Nov 2019 15:35:06 +0000 (5 16:35 +0100)
treedbd007a306d2e3895a2d90982842b12a1a8a3628
parentd974451c5bc9a0bdf07a8299edf75c0f66a86e04
image-fuzzer: Use io.StringIO

StringIO.StringIO is not available on Python 3, but io.StringIO
is available on both Python 2 and 3.  io.StringIO is slightly
different from the Python 2 StringIO module, though, so we need
bytes coming from subprocess.Popen() to be explicitly decoded.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20191016192430.25098-5-ehabkost@redhat.com
Message-Id: <20191016192430.25098-5-ehabkost@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/image-fuzzer/runner.py