iotests.py: Add is_str()
commit011a576113000f9c90a8450ef9116cca8d6f2523
authorMax Reitz <mreitz@redhat.com>
Sun, 10 Feb 2019 14:57:32 +0000 (10 15:57 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 25 Feb 2019 14:11:28 +0000 (25 15:11 +0100)
tree53e6f6c5fb742ae0418a8a20dd94c55095cea84e
parent9ac10f2e2c93e647ba6830c7083310aa04f65021
iotests.py: Add is_str()

On Python 2.x, strings are not always unicode strings.  This function
checks whether a given value is a plain string, or a unicode string (if
there is a difference).

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20190210145736.1486-7-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/iotests.py