From: Paul RASCLE Date: Thu, 5 Jul 2018 15:11:23 +0000 (+0200) Subject: python 3 syntax for print X-Git-Tag: SHAPER_V9_1_0RC1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef476ba0ea713591e0750d1cf250e5cce6f02c62;p=modules%2Fkernel.git python 3 syntax for print --- diff --git a/src/Launcher/Test/test_launcher.py b/src/Launcher/Test/test_launcher.py index 339e4c875..2fd76f2b1 100755 --- a/src/Launcher/Test/test_launcher.py +++ b/src/Launcher/Test/test_launcher.py @@ -506,7 +506,7 @@ f.close() resManager= salome.lcc.getResourcesManager() for resource in self.ressources: - print "Testing command job on ", resource + print("Testing command job on ", resource) job_params.result_directory = local_result_dir + resource job_params.job_name = "CommandPreJob_" + resource job_params.resource_required.name = resource @@ -521,11 +521,11 @@ f.close() launcher.launchJob(job_id) # wait for the end of the job jobState = launcher.getJobState(job_id) - print "Job %d state: %s" % (job_id,jobState) + print("Job %d state: %s" % (job_id,jobState)) while jobState != "FINISHED" and jobState != "FAILED" : time.sleep(3) jobState = launcher.getJobState(job_id) - print "Job %d state: %s" % (job_id,jobState) + print("Job %d state: %s" % (job_id,jobState)) pass # verify the results @@ -600,7 +600,7 @@ f.close() resManager= salome.lcc.getResourcesManager() for resource in self.ressources: - print "Testing command salome job on ", resource + print("Testing command salome job on ", resource) job_params.result_directory = local_result_dir + resource job_params.job_name = "CommandSalomeJob_" + resource job_params.resource_required.name = resource @@ -615,11 +615,11 @@ f.close() launcher.launchJob(job_id) # wait for the end of the job jobState = launcher.getJobState(job_id) - print "Job %d state: %s" % (job_id,jobState) + print("Job %d state: %s" % (job_id,jobState)) while jobState != "FINISHED" and jobState != "FAILED" : time.sleep(3) jobState = launcher.getJobState(job_id) - print "Job %d state: %s" % (job_id,jobState) + print("Job %d state: %s" % (job_id,jobState)) pass # verify the results