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 = ''
|
got = ''
|
||||||
|
|
||||||
if not got == expected:
|
if not got == expected:
|
||||||
print "\n\n////////////////////////////////////////////////////////////////////////"
|
print("\n\n////////////////////////////////////////////////////////////////////////")
|
||||||
|
|
||||||
expectedFileName = "expected.txt"
|
expectedFileName = "expected.txt"
|
||||||
gotFileName = "got.txt"
|
gotFileName = "got.txt"
|
||||||
print "Output is also saved to files '" + expectedFileName + \
|
print("Output is also saved to files '" + expectedFileName + \
|
||||||
"' and '" + gotFileName + "'";
|
"' and '" + gotFileName + "'")
|
||||||
|
|
||||||
expectedFile = open(expectedFileName, "w")
|
expectedFile = open(expectedFileName, "w")
|
||||||
expectedFile.write(expected)
|
expectedFile.write(expected)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue