[U-Boot] [PATCHv2 06/13] test/py: Manual python3 fixes
Simon Glass
sjg at chromium.org
Thu Oct 24 00:59:15 UTC 2019
On Tue, 22 Oct 2019 at 21:20, Tom Rini <trini at konsulko.com> wrote:
>
> - Modern pytest is more visible in telling us about parameters that we
> had not described, so describe a few more.
> - ConfigParser.readfp(...) is now configparser.read_file(...)
> - As part of the "strings vs bytes" conversions in Python 3, we use the
> default encoding/decoding of utf-8 but in some places tell Python to
> replace problematic conversions rather than throw a fatal error.
> - Fix a typo noticed while doing the above ("tot he" -> "to the").
> - As suggested by Stephen, re-alphabetize the import list
> - Per Heinrich, replace how we write contents in test_fit.py
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
> test/py/conftest.py | 9 ++++-----
> test/py/multiplexed_log.py | 9 +++++----
> test/py/pytest.ini | 3 +++
> test/py/tests/test_fit.py | 4 ++--
> test/py/u_boot_spawn.py | 4 ++--
> 5 files changed, 16 insertions(+), 13 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
Tested on sandbox:
Tested-by: Simon Glass <sjg at chromium.org>
(I agree about supporting the older Python 3, BTW)
More information about the U-Boot
mailing list