test/py: test_ut.py: Ensure we use bytes
authorTom Rini <trini@konsulko.com>
Thu, 24 Oct 2019 15:59:22 +0000 (11:59 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Oct 2019 21:48:47 +0000 (17:48 -0400)
commit8060209a9278593519f73ba763e67f7aa219a732
treed05992c0fc5de377bbbbb5f95c1830e9703d70b9
parentfd31fc172c626bdac2afd8af9f8482bfc21a5501
test/py: test_ut.py: Ensure we use bytes

In the case of some unit tests we are working with providing a fake
flash device that we have written some text strings in to.  In this case
we want to tell Python to encode things to bytes for us.

Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Simon Glass <sjg@chromium.org> [on sandbox]
Signed-off-by: Tom Rini <trini@konsulko.com>
test/py/tests/test_ut.py