From d1392dc0345fb940899baa1121b9230843e47346 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Wed, 29 Mar 2023 13:16:34 +0200 Subject: [PATCH] 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 --- doc/examples/creating_parallel_mesh.py | 6 +++++- test/tests.set | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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) -- 2.30.2