Salome HOME
Fix two failing tests on Windows: yan/parallel_mesh_win 4/head
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 29 Mar 2023 11:16:34 +0000 (13:16 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 29 Mar 2023 11:16:34 +0000 (13:16 +0200)
  1- ex30_tepal.py -  vetoe this test on Windows since 3D Mesher is not available GHS3DRPL -  MeshGemsh
  2- creating_parallel_mesh.py: on windows we build Python without tcl/tk thus tkinter module is missing -  do not raise exception in that case
Tested OK on Windows

doc/examples/creating_parallel_mesh.py
test/tests.set

index e837fc9d77b1281f4abf86833cb3e297803c4fe8..6b9006e0c619b3d47a836739dea16f9949c599fb 100644 (file)
@@ -1,7 +1,11 @@
 # contains function to compute a mesh in parallel
 from platform import java_ver
 import sys
-from tkinter import W
+try:
+    from tkinter import W
+except:
+    print("warning: could not import tkinter")
+
 import salome
 
 import time
index b14e7c2004c7d6067fbc75834ed4ce781c19040e..9eecbe094d7c21e4ffdb9b93910708c2843b4a36 100644 (file)
@@ -33,7 +33,6 @@ SET(BAD_TESTS
   ex04_cube5tetraHexa.py
   ex21_lamp.py
   ex29_refine.py
-  ex30_tepal.py
   ex_MakePolyLine.py
   test_smeshplugins.py
   PAL_MESH_041_mesh.py
@@ -68,6 +67,7 @@ SET(BAD_TESTS
   )
 IF(NOT WIN32)
   LIST(APPEND BAD_TESTS
+    ex30_tepal.py
     test_smeshplugin_mg_tetra_parallele.py
   )
 ENDIF(NOT WIN32)