X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Ftests%2FTest%2Ftutorial_5.py;h=00234d92fb2d8ff8ef17af2d77a0a0b754ae903a;hb=df48f2f8906e43a3b04e5cfb4076647890a50b95;hp=fb29053773ec1cb8cc57c789455d939df46085dd;hpb=2c82da385bf3d7b6a045dfe7620d4b9bdc154fe6;p=modules%2Fhomard.git diff --git a/src/tests/Test/tutorial_5.py b/src/tests/Test/tutorial_5.py index fb290537..00234d92 100755 --- a/src/tests/Test/tutorial_5.py +++ b/src/tests/Test/tutorial_5.py @@ -21,7 +21,7 @@ Python script for HOMARD Test tutorial_5 associe au tutorial 5 """ -__revision__ = "V3.1" +__revision__ = "V4.01" #======================================================================== TEST_NAME = "tutorial_5" @@ -69,12 +69,12 @@ IPAR.append("AP_MODULES_LIST", "Homard") # #======================================================================== #======================================================================== -def homard_exec(theStudy): +def homard_exec(): """ Python script for HOMARD """ # - HOMARD.SetCurrentStudy(theStudy) + HOMARD.UpdateStudy() # # Frontiere # ========= @@ -131,10 +131,10 @@ HOMARD.SetLanguageShort("fr") # Exec of HOMARD-SALOME # try : - ERROR = homard_exec(salome.myStudy) + ERROR = homard_exec() if ERROR : raise Exception('Pb in homard_exec at iteration %d' %ERROR ) -except Exception, eee: +except Exception as eee: raise Exception('Pb in homard_exec: '+eee.message) # # Test of the results @@ -148,6 +148,6 @@ gzip_gunzip(DATA_TUTORIAL, 5, 1) # ================================== # if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1) + salome.sg.updateObjBrowser() iparameters.getSession().restoreVisualState(1)