Salome HOME
Python3: tests
authorGilles DAVID <gilles-g.david@edf.fr>
Fri, 31 Mar 2017 08:41:34 +0000 (10:41 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Fri, 31 Mar 2017 08:41:34 +0000 (10:41 +0200)
tests/test_cadsurf_multithread.py
tests/test_periodicity_reflexion_2D_precad.py
tests/test_proximity.py
tests/test_remove_tiny_edges.py

index 62e8f0a13049e1e6ba1ad7e7ca956b4caae2e941..d049b9053870e4ae64947b92c0307014797f7ac6 100644 (file)
@@ -57,7 +57,7 @@ time1 = time.time()
 
 time_multithread = time1-time0
 
-print "Time in 4 proc: %.3s"%(time_multithread)
+print("Time in 4 proc: %.3s"%(time_multithread))
 
 Mesh_2 = smesh.Mesh(flight_solid_brep_1)
 MG_CADSurf = Mesh_2.Triangle(algo=smeshBuilder.MG_CADSurf)
@@ -75,7 +75,7 @@ isDone = Mesh_2.Compute()
 time3 = time.time()
 
 time_singlethread = time3-time2
-print "Time in 1 proc: %.3s"%(time_singlethread)
+print("Time in 1 proc: %.3s"%(time_singlethread))
 
 assert time_multithread < time_singlethread/2.
 
index f8674fe978001000a99c1862a94f4bfbb482ed2e..11d21be8431ae737229725e1a58ef6cadddf4eb5 100644 (file)
@@ -115,7 +115,7 @@ def checkProjection(gr, mesh_translated, tol=1e-7):
         non_coincident_nodes = list(set(mesh_nodes) - set(coincident_nodes))
         mesh_check.MakeGroupByIds("non_coincident_nodes", SMESH.NODE, non_coincident_nodes)
         #raise Exception("Projection failed for %s"%name)
-        print "Projection failed for %s"%name
+        print("Projection failed for %s"%name)
         
 checkProjection(gr_right, bottom_rotated)
 
index a649832c8aa9490716ee154654ce806ee6251ded..6b783439118b10c2b2035502706ab118ef41b356 100644 (file)
@@ -80,7 +80,7 @@ gr_mesh_spheres = Mesh_1.Group(gr_spheres_faces)
 # Check the minimal area of the box faces to check the proximity
 min_area, max_area = Mesh_1.GetMinMax(SMESH.FT_Area, gr_mesh_box)
 
-print "min_area: ", min_area
+print("min_area: ", min_area)
 
 if min_area > 1.5:
     raise Exception("Wrong minimal area on box. Proximity has not worked.")
index 1e863ee6e7c07d703ed8b563081d7dac529bcd3c..af91fb4fb71ea6151d36f2671edbdcbe6e5cfbaf 100644 (file)
@@ -101,7 +101,7 @@ for elem in elems:
 min_length = min(edges_length)
 x1, y1, z1 = Mesh.GetNodeXYZ(node)
 
-print min_length
+print(min_length)
 
 if min_length<tiny_edge_length:
     raise Exception("Small edge has not been removed")