Make Doxygen unit test supporting module Python3-friendly.
Add parentheses around print argument to make the same code work in both Python2 and Python3.
This commit is contained in:
parent
4f032332c9
commit
f6ba7b9148
1 changed files with 3 additions and 3 deletions
|
|
@ -13,12 +13,12 @@ def check(got, expected):
|
|||
got = ''
|
||||
|
||||
if not got == expected:
|
||||
print "\n\n////////////////////////////////////////////////////////////////////////"
|
||||
print("\n\n////////////////////////////////////////////////////////////////////////")
|
||||
|
||||
expectedFileName = "expected.txt"
|
||||
gotFileName = "got.txt"
|
||||
print "Output is also saved to files '" + expectedFileName + \
|
||||
"' and '" + gotFileName + "'";
|
||||
print("Output is also saved to files '" + expectedFileName + \
|
||||
"' and '" + gotFileName + "'")
|
||||
|
||||
expectedFile = open(expectedFileName, "w")
|
||||
expectedFile.write(expected)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue