From: Nabil Ghodbane Date: Wed, 29 Mar 2023 11:16:34 +0000 (+0200) Subject: Fix two failing tests on Windows: X-Git-Tag: V9_11_0a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fyan%2Fparallel_mesh_win;p=modules%2Fsmesh.git Fix two failing tests on Windows: 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 --- diff --git a/doc/examples/creating_parallel_mesh.py b/doc/examples/creating_parallel_mesh.py index e837fc9d7..6b9006e0c 100644 --- a/doc/examples/creating_parallel_mesh.py +++ b/doc/examples/creating_parallel_mesh.py @@ -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 diff --git a/test/tests.set b/test/tests.set index b14e7c200..9eecbe094 100644 --- a/test/tests.set +++ b/test/tests.set @@ -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)