From 8e6fbd2886d3ad51b75232bd0019d92d496e80cb Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 12 Jul 2023 16:34:41 +0200 Subject: [PATCH] OpenSCAD: a test internally uses the DXF importer If not all 3rd party packages are installed the DXF importer opens a modal dialog and blocks the tests --- src/Mod/OpenSCAD/OpenSCADTest/app/test_importCSG.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/OpenSCAD/OpenSCADTest/app/test_importCSG.py b/src/Mod/OpenSCAD/OpenSCADTest/app/test_importCSG.py index ffe197c8e9..3c8bfec049 100644 --- a/src/Mod/OpenSCAD/OpenSCADTest/app/test_importCSG.py +++ b/src/Mod/OpenSCAD/OpenSCADTest/app/test_importCSG.py @@ -121,6 +121,10 @@ class TestImportCSG(unittest.TestCase): FreeCAD.closeDocument(doc.Name) def test_import_text(self): + # This uses the DXF importer that may pop-up modal dialogs + # if not all 3rd party libraries are installed + if FreeCAD.GuiUp: + return try: doc = self.utility_create_scad("text(\"X\");","text") # Keep it short to keep the test fast-ish text = doc.getObject("text")