]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit1ceb738568d41ba5a5271ae923e70bfc85bd895f
tree5555060fd0cf542f381345aa2e8bbd34ca8ffe4d
parentc62f1446a1de8d50415ce086256bae5d39d4f365
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