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:
Vadim Zeitlin 2014-05-15 01:00:33 +02:00
commit f6ba7b9148

View file

@ -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)