From e0e6c72e94c754b76b1cdd4cbc44a15762e04dee Mon Sep 17 00:00:00 2001 From: "Marty E. Plummer" Date: Fri, 10 May 2019 00:43:56 -0500 Subject: treewide: use print function instead of statement This enables better compat between python2.7 and python3.x Without this change, building with python3.x (python3.5 tested) as /usr/bin/python will result in the following error: File: "sbe/src/build/security/securityRegListGen.py", line 64 -v, --verbose enable verbose traces" ^ SyntaxError: Missing parentheses in call to 'print' Signed-off-by: Marty E. Plummer Change-Id: Id617f54096fca5cc5fcd829767595a85350e343d Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89618 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: RAJA DAS --- src/test/testcases/testAduMem_ecc.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/test/testcases/testAduMem_ecc.py') diff --git a/src/test/testcases/testAduMem_ecc.py b/src/test/testcases/testAduMem_ecc.py index c427bc9a..d85e0e7c 100644 --- a/src/test/testcases/testAduMem_ecc.py +++ b/src/test/testcases/testAduMem_ecc.py @@ -22,6 +22,7 @@ # permissions and limitations under the License. # # IBM_PROLOG_END_TAG +from __future__ import print_function import sys sys.path.append("targets/p9_nimbus/sbeTest" ) sys.path.append("targets/p9_axone/sbeTest" ) @@ -45,8 +46,8 @@ def main( ): if(data == readData): print ("Success - Write-Read ADU with ECC") else: - print data - print readData + print(data) + print(readData) raise Exception('data mistmach') # Partial Write test @@ -60,10 +61,10 @@ def main( ): if(sandwichData == readBackData): print ("Success - Write_Part-Read ADU with ECC") else: - print readData - print data - print readBackData - print sandwichData + print(readData) + print(data) + print(readBackData) + print(sandwichData) raise Exception('data mistmach') #------------------------------------------------- -- cgit v1.2.1