]> SALOME platform Git repositories - modules/shaper.git/blobdiff - test.API/SHAPER/Transformations/TestAPI_MultiTranslation.py
Salome HOME
Porting to SALOME 9.1.0.
[modules/shaper.git] / test.API / SHAPER / Transformations / TestAPI_MultiTranslation.py
index 2195df285810ec7493429e06b4129ba4eb1da6ff..0a3ac761925f4a846088b0b865c4af39edd167ee 100644 (file)
@@ -51,7 +51,7 @@ MultiTranslation_2 = shaperpy.makeMultiTranslation(Box_2, ax1, -15., 5)
 
 try:
     MultiTranslation_3 = shaperpy.makeMultiTranslation(Box_3, ax1, 15., -2)
-except myExcept,ec:
+except myExcept as ec:
     assert(ec.what() == "Multitranslation builder :: the number of copies for the first direction is null or negative.")
 
 MultiTranslation_5 = shaperpy.makeMultiTranslation(Box_5, ax1, 10., 5, ax2, 10., 5)
@@ -66,7 +66,7 @@ MultiTranslation_6 = shaperpy.makeMultiTranslation(Box_6, ax1, 15., 5, ax2, -10.
 # Pas d'exception levee alors qu'une devrait y en avoir une
 try:
     MultiTranslation_7 = shaperpy.makeMultiTranslation(Box_7, ax1, 15., 5, ax2, 10., -2)
-except myExcept,ec:
+except myExcept as ec:
     assert(ec.what() == "Multitranslation builder :: the number of copies for the second direction is null or negative.")
 
 #try: