test/py: Make print statements python 3.x safe
In python 3.x print must be called as a function rather than used as a statement. Update uses of print to the function call syntax in order to be python 3.x safe. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
@@ -586,7 +586,7 @@ def pytest_runtest_protocol(item, nextitem):
|
||||
# is fixed, if this exception still exists, it will then be logged as
|
||||
# part of the test's stdout.
|
||||
import traceback
|
||||
print 'Exception occurred while logging runtest status:'
|
||||
print('Exception occurred while logging runtest status:')
|
||||
traceback.print_exc()
|
||||
# FIXME: Can we force a test failure here?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user