patman: Adjust functional tests for Python 3
authorSimon Glass <sjg@chromium.org>
Tue, 14 May 2019 21:53:53 +0000 (15:53 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
commite6dca5e8f8d4160a6efed05f5275426e2d274542
tree5555060fd0cf542f381345aa2e8bbd34ca8ffe4d
parent7ebb45c7e2e1b8355ec4802e0802ae7b383a6ea5
patman: Adjust functional tests for Python 3

Change the code so that it works on both Python 2 and Python 3. This works
by using unicode instead of latin1 for the test input, and ensuring that
the output is converted to a string rather than a unicode object on
Python 2.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/func_test.py