summaryrefslogtreecommitdiff
path: root/test/py/test.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-10-24 18:59:20 +0300
committerTom Rini <trini@konsulko.com>2019-10-31 00:48:47 +0300
commitfe1193e254faccc4e6629f1cfbc99d5ceb34428a (patch)
tree73c71f3873328c3e194296da9b2554022703a416 /test/py/test.py
parent3c941e048c824b94ae09fd9e1f91116f55ce0f1f (diff)
downloadu-boot-fe1193e254faccc4e6629f1cfbc99d5ceb34428a.tar.xz
test/py: Automated conversion to Python 3
Use the 2to3 tool to perform numerous automatic conversions from Python 2 syntax to Python 3. Also fix whitespace problems that Python 3 catches that Python 2 did not. 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>
Diffstat (limited to 'test/py/test.py')
-rwxr-xr-xtest/py/test.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/py/test.py b/test/py/test.py
index a5140945d4..0ce1838833 100755
--- a/test/py/test.py
+++ b/test/py/test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2015 Stephen Warren
@@ -7,8 +7,6 @@
# Wrapper script to invoke pytest with the directory name that contains the
# U-Boot tests.
-from __future__ import print_function
-
import os
import os.path
import sys