]> git.sur5r.net Git - u-boot/blobdiff - test/py/test.py
test/py: Make print statements python 3.x safe
[u-boot] / test / py / test.py
index 04baf8df3ba5581df53629c4da8f451b47be5394..a5140945d4b95107de3c118f9dac339fec82101b 100755 (executable)
@@ -7,6 +7,8 @@
 # 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
@@ -26,7 +28,7 @@ except:
     traceback.print_exc()
     # Hint to the user that they likely simply haven't installed the required
     # dependencies.
-    print >>sys.stderr, '''
+    print('''
 exec(py.test) failed; perhaps you are missing some dependencies?
-See test/py/README.md for the list.'''
+See test/py/README.md for the list.''', file=sys.stderr)
     sys.exit(1)