diff options
author | Wainer dos Santos Moschetta <wainersm@redhat.com> | 2019-03-29 17:08:01 -0400 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2019-06-12 17:53:22 +0100 |
commit | 3ad3e36e1469a37740b5ec41d8d917c5ecd40c16 (patch) | |
tree | 64701c27cc7e56f3b8e81e450041f7728f9d4131 /tests/tpm-tests.h | |
parent | b0040fa17bcf0e51d4a599ee82108ace830d4eac (diff) |
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/tpm-tests.h')
0 files changed, 0 insertions, 0 deletions