X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftests%2FTest%2Ftutorial_1.py;h=b227bd2aba1bf6729694a831689b040bdf2bb48f;hb=c2d4593e67bb2b3d27ddcc650e646b2ecb8ddd64;hp=c5cf70d0a296da69aa0ce8899bdc8bdbd0287c84;hpb=67bca232c2178b2ed8e921dcb9c54640f5a0a286;p=modules%2Fhomard.git diff --git a/src/tests/Test/tutorial_1.py b/src/tests/Test/tutorial_1.py index c5cf70d0..b227bd2a 100755 --- a/src/tests/Test/tutorial_1.py +++ b/src/tests/Test/tutorial_1.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2011-2015 CEA/DEN, EDF R&D +# Copyright (C) 2011-2016 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -21,7 +21,7 @@ Python script for HOMARD Test tutorial_1 associe au tutorial 1 """ -__revision__ = "V3.1" +__revision__ = "V4.01" #======================================================================== TEST_NAME = "tutorial_1" @@ -123,7 +123,7 @@ try : ERROR = homard_exec(salome.myStudy) 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 @@ -137,6 +137,6 @@ gzip_gunzip(DATA_TUTORIAL, 1, 1) # ================================== # if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1) + salome.sg.updateObjBrowser(True) iparameters.getSession().restoreVisualState(1)