summaryrefslogtreecommitdiffstats
path: root/QMTest
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2016-01-01 14:00:42 (GMT)
committerRussel Winder <russel@winder.org.uk>2016-01-01 14:00:42 (GMT)
commit85aa9baee353e5a7710cb34932ea7ed09a847e39 (patch)
treea26946aaab3121111a929cf7c7760a8b30c2f010 /QMTest
parent34cf3bdb1743de9a5534bfd25998d0a01297f004 (diff)
downloadSCons-85aa9baee353e5a7710cb34932ea7ed09a847e39.zip
SCons-85aa9baee353e5a7710cb34932ea7ed09a847e39.tar.gz
SCons-85aa9baee353e5a7710cb34932ea7ed09a847e39.tar.bz2
Amend some missed print functions.
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestCommon.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/QMTest/TestCommon.py b/QMTest/TestCommon.py
index 7387e18..f878636 100644
--- a/QMTest/TestCommon.py
+++ b/QMTest/TestCommon.py
@@ -92,6 +92,7 @@ The TestCommon module also provides the following variables
# PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
# AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+
from __future__ import print_function
__author__ = "Steven Knight <knight at baldmt dot com>"
@@ -307,10 +308,10 @@ class TestCommon(TestCmd):
if find(output, input) is None:
if title is None:
title = 'output'
- print 'Missing expected input from %s:' % title
- print input
- print self.banner(title + ' ')
- print output
+ print('Missing expected input from {}:'.format(title))
+ print(input)
+ print(self.banner(title + ' '))
+ print(output)
self.fail_test()
def must_contain_all_lines(self, output, lines, title=None, find=None):