From 690c7d17f7286176bb97b3c857d23f215a9d9187 Mon Sep 17 00:00:00 2001 From: prascle Date: Fri, 7 Jul 2006 10:14:32 +0000 Subject: [PATCH] PR: for 9772 (avoid deadlock with embedded python container) --- src/LifeCycleCORBA_SWIG/Test/LifeCycleCORBA_SWIGTest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/LifeCycleCORBA_SWIG/Test/LifeCycleCORBA_SWIGTest.py b/src/LifeCycleCORBA_SWIG/Test/LifeCycleCORBA_SWIGTest.py index 347524308..ada3edbb0 100644 --- a/src/LifeCycleCORBA_SWIG/Test/LifeCycleCORBA_SWIGTest.py +++ b/src/LifeCycleCORBA_SWIG/Test/LifeCycleCORBA_SWIGTest.py @@ -176,7 +176,10 @@ class LifeCycleCORBA_SWIGTest(unittest.TestCase): """ containerName = "aFarAwayContainer" containerName += "/swTheContainer" - cp1=self.lcc.FindOrLoad_Component(containerName,"SalomeTestComponent") + try: + cp1=self.lcc.FindOrLoad_Component(containerName,"SalomeTestComponent") + except RuntimeError,ex : + self.assertEqual(ex.args[0],'SALOME exception') pass -- 2.39.2