# -*- 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
Python script for HOMARD
Test tutorial_1 associe au tutorial 1
"""
-__revision__ = "V3.1"
+__revision__ = "V4.01"
#========================================================================
TEST_NAME = "tutorial_1"
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
# ==================================
#
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(1)
+ salome.sg.updateObjBrowser(True)
iparameters.getSession().restoreVisualState(1)