From: gdd Date: Thu, 15 Nov 2012 10:26:19 +0000 (+0000) Subject: Correction des try except X-Git-Tag: V6_6_0~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=699edd5cb62e75712a2d1e282bae709d54b30414;p=modules%2Fhomard.git Correction des try except --- diff --git a/tests/test_1.py b/tests/test_1.py index 01a07768..a769a9f4 100644 --- a/tests/test_1.py +++ b/tests/test_1.py @@ -140,8 +140,8 @@ try : if error_main : raise Exception('Pb in homard_exec at iteration %d' %error_main ) except : - raise Exception('Pb in homard_exec at iteration %d' %error_main ) - sys.exit(1) + raise Exception('Pb in homard_exec') + # # Test of the result # diff --git a/tests/test_2.py b/tests/test_2.py index 60110999..5f86dd09 100644 --- a/tests/test_2.py +++ b/tests/test_2.py @@ -129,8 +129,8 @@ try : if error_main : raise Exception('Pb in homard_exec at iteration %d' %error_main ) except : - raise Exception('Pb in homard_exec at iteration %d' %error_main ) - sys.exit(1) + raise Exception('Pb in homard_exec') + # # Test of the result # diff --git a/tests/test_3.py b/tests/test_3.py index 5e7cdcc4..2aef04f5 100644 --- a/tests/test_3.py +++ b/tests/test_3.py @@ -128,9 +128,8 @@ try : if error_main : raise Exception('Pb in homard_exec at iteration %d' %error_main ) except : - if error_main : - raise Exception('Pb in homard_exec at iteration %d' %error_main ) - sys.exit(1) + raise Exception('Pb in homard_exec') + # # Test of the result #