From 699edd5cb62e75712a2d1e282bae709d54b30414 Mon Sep 17 00:00:00 2001 From: gdd Date: Thu, 15 Nov 2012 10:26:19 +0000 Subject: [PATCH] Correction des try except --- tests/test_1.py | 4 ++-- tests/test_2.py | 4 ++-- tests/test_3.py | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) 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 # -- 2.39.2