Salome HOME
Merge changes from 'master' branch.
authorrnv <rnv@opencascade.com>
Fri, 29 Dec 2017 13:21:20 +0000 (16:21 +0300)
committerrnv <rnv@opencascade.com>
Fri, 29 Dec 2017 13:21:20 +0000 (16:21 +0300)
1  2 
src/tests/Test/test_1.py
src/tests/Test/test_2.py
src/tests/Test/test_3.py
src/tests/Test/test_4.py
src/tests/Test/test_5.py
src/tests/Test/tutorial_1.py
src/tests/Test/tutorial_2.py
src/tests/Test/tutorial_3.py
src/tests/Test/tutorial_4.py
src/tests/Test/tutorial_5.py

index f9fe63ac54e0be8398569e22b870920381d5968d,dd221ebc8816a4fcb94ddfaa1cd899004d7e7074..9690918fe9e0e9f9bee9de6c97267c2134437ea2
@@@ -107,9 -107,9 +107,9 @@@ Python script for HOMAR
      zones_1_et_2.AddZone('Zone_1_1', 1)
      zones_1_et_2.AddZone('Zone_1_2', 1)
      laux = zones_1_et_2.GetZones()
 -    nbzone = len(laux)/2
 +    nbzone = len(laux) // 2
      jaux = 0
-     for _ in range(nbzone) :
+     for iaux in range(nbzone) :
        print(hyponame_2, " : ", dico[laux[jaux+1]], "sur la zone", laux[jaux])
        jaux += 2
      print(hyponame_2, " : champ utilisé :", zones_1_et_2.GetFieldName())
@@@ -206,7 -206,7 +206,7 @@@ try 
    if ERROR :
      raise Exception('Pb in homard_exec at iteration %d' %ERROR )
  except Exception as eee:
-   raise Exception('Pb in homard_exec: ' + str(eee))
 -  raise Exception('Pb in homard_exec: '+eee.message)
++  raise Exception('Pb in homard_exec: '+str(eee.message))
  #
  # Test of the results
  #
Simple merge
Simple merge
index 971c73e71bfd9241f506ffb5efec6d4f35044ca1,c3d870c24dea815057f53d86caf5c6d39fe34f12..6a83c6f8e1bd60aa7dd1a724e63f6ce32907790f
@@@ -321,7 -321,7 +321,7 @@@ try 
    if ERROR :
      raise Exception('Pb in geom_smesh_exec')
  except Exception as eee:
-   raise Exception('Pb in geom_smesh_exec: ' + str(eee))
 -  raise Exception('Pb in geom_smesh_exec: '+eee.message)
++  raise Exception('Pb in geom_smesh_exec: '+str(eee.message))
  
  HOMARD = salome.lcc.FindOrLoadComponent('FactoryServer', 'HOMARD')
  assert HOMARD is not None, "Impossible to load homard engine"
@@@ -334,7 -334,7 +334,7 @@@ try 
    if ERROR :
      raise Exception('Pb in homard_exec at iteration %d' %ERROR )
  except Exception as eee:
-   raise Exception('Pb in homard_exec: ' + str(eee))
 -  raise Exception('Pb in homard_exec: '+eee.message)
++  raise Exception('Pb in homard_exec: '+str(eee.message))
  #
  # Test of the results
  #
index 30fe52b8354afd668e61931979331eba208d7d64,1c131ce30f8228857cf7474aa2b32066b10d631a..439426c02ef8b994aa0f19c1aa8fd115cc1fc963
@@@ -309,7 -309,7 +309,7 @@@ try 
    if ERROR :
      raise Exception('Pb in mesh_exec')
  except Exception as eee:
-   raise Exception('Pb in mesh_exec: ' + str(eee))
 -  raise Exception('Pb in mesh_exec: '+eee.message)
++  raise Exception('Pb in mesh_exec: '+str(eee.message))
  
  HOMARD = salome.lcc.FindOrLoadComponent('FactoryServer', 'HOMARD')
  assert HOMARD is not None, "Impossible to load homard engine"
@@@ -322,7 -322,7 +322,7 @@@ try 
    if ERROR :
      raise Exception('Pb in homard_exec at iteration %d' %ERROR )
  except Exception as eee:
-   raise Exception('Pb in homard_exec: ' + str(eee))
 -  raise Exception('Pb in homard_exec: '+eee.message)
++  raise Exception('Pb in homard_exec: '+str(eee.message))
  #
  # Test of the results
  #
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge