diff options
author | Wainer dos Santos Moschetta | 2019-03-29 22:08:01 +0100 |
---|---|---|
committer | Alex Bennée | 2019-06-12 18:53:22 +0200 |
commit | 3ad3e36e1469a37740b5ec41d8d917c5ecd40c16 (patch) | |
tree | 64701c27cc7e56f3b8e81e450041f7728f9d4131 /tests/check-qom-interface.c | |
parent | tests/vm: Use python configured on build (diff) | |
download | qemu-3ad3e36e1469a37740b5ec41d8d917c5ecd40c16.tar.gz qemu-3ad3e36e1469a37740b5ec41d8d917c5ecd40c16.tar.xz qemu-3ad3e36e1469a37740b5ec41d8d917c5ecd40c16.zip |
tests/vm: Port basevm to Python 3
Fixed tests/vm/basevm.py to run with Python 3:
- hashlib.sha1() requires an binary encoded object.
- uses floor division ("//") (PEP 238).
- decode bytes to unicode when needed.
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190329210804.22121-3-wainersm@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'tests/check-qom-interface.c')
0 files changed, 0 insertions, 0 deletions