From 8740b05589924e747155bbdd487b88b2e18e8e15 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 29 Mar 2022 17:00:09 +0300 Subject: [PATCH] Fix HDF tests in accordance with KERNEL changes: forcibly re-initialize session --- test.hdfs/test_hdf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test.hdfs/test_hdf.py b/test.hdfs/test_hdf.py index 75819433d..26a4319c8 100644 --- a/test.hdfs/test_hdf.py +++ b/test.hdfs/test_hdf.py @@ -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 -- 2.39.2