]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix HDF tests in accordance with KERNEL changes: forcibly re-initialize session
authorvsr <vsr@opencascade.com>
Tue, 29 Mar 2022 14:00:09 +0000 (17:00 +0300)
committervsr <vsr@opencascade.com>
Tue, 29 Mar 2022 14:00:09 +0000 (17:00 +0300)
test.hdfs/test_hdf.py

index 75819433d4d7fabe52f3df829a3a343e47aa450e..26a4319c80d4b165d2f8e42bfd151c92594bcf0d 100644 (file)
@@ -33,7 +33,7 @@ class TestHDF(unittest.TestCase):
 
   def setUp(self):
     salome.standalone()
-    salome.salome_init(self.testfile, embedded=1)
+    salome.salome_init(self.testfile, embedded=1, forced=True)
     myStudyName = salome.myStudy._get_Name()
     self.session = salome.naming_service.Resolve('/Kernel/Session')
     self.session.emitMessage("connect_to_study")
@@ -83,4 +83,3 @@ if __name__ == "__main__":
   #qtsalome.qApp.closeAllWindows()
   import signal
   os.kill(os.getpid(),signal.SIGKILL)
-  
\ No newline at end of file