]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Minor: wider exception check in *DEC test V9_11_0b1
authorabn <adrien.bruneton@cea.fr>
Tue, 16 May 2023 07:42:18 +0000 (09:42 +0200)
committerabn <adrien.bruneton@cea.fr>
Tue, 16 May 2023 09:24:13 +0000 (11:24 +0200)
src/ParaMEDMEM_Swig/test_InterpKernelDEC.py
src/ParaMEDMEM_Swig/test_OverlapDEC.py

index fe30d14cbfb10331e35935a0fcefb3c1f74fa189..b80a5d76fadbd383e0043399f3fbe081c692dd52 100755 (executable)
@@ -108,7 +108,7 @@ class ParaMEDMEM_IK_DEC_Tests(unittest.TestCase):
         i6 = InterpKernelDEC(l1, l2, MPI._addressof(MPI.COMM_WORLD))
         # Should fail with 2 proc groups **and** a communicator
         self.assertRaises(InterpKernelException, InterpKernelDEC.New, source_group, target_group, MPI.COMM_WORLD)
-        self.assertRaises(NotImplementedError, InterpKernelDEC, source_group, target_group, MPI.COMM_WORLD)
+        self.assertRaises(Exception, InterpKernelDEC, source_group, target_group, MPI.COMM_WORLD)
         i6.release(); i5.release(); i4.release(); i3.release(); i2.release(); i1.release()
         source_group.release()
         target_group.release()
index 778f40b03f3d71e63b1369c95f94ded6b71362a8..8e67164331f3f79b491d2b237885b64a45f5037c 100755 (executable)
@@ -104,7 +104,7 @@ class ParaMEDMEM_O_DEC_Tests(unittest.TestCase):
         o3 = OverlapDEC.New(proc_group, MPI.COMM_WORLD)
         # Also work directly with the **hack** on the comm:
         o4 = OverlapDEC(proc_group, MPI._addressof(MPI.COMM_WORLD))
-        self.assertRaises(NotImplementedError, OverlapDEC, proc_group, MPI.COMM_WORLD)
+        self.assertRaises(Exception, OverlapDEC, proc_group, MPI.COMM_WORLD)
         o4.release(); o3.release(); o2.release(); o1.release()
 
     @WriteInTmpDir