From 85aa9baee353e5a7710cb34932ea7ed09a847e39 Mon Sep 17 00:00:00 2001 From: Russel Winder Date: Fri, 1 Jan 2016 14:00:42 +0000 Subject: Amend some missed print functions. --- QMTest/TestCommon.py | 9 +++++---- 1 file 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 " @@ -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): -- cgit v0.12