From 8ce14b2a2bf5fef96f93c7378ea283b1c52b1447 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Sat, 24 Jul 2021 21:59:05 -0500 Subject: [PATCH] Path: Close Adaptive geometry source file upon unit test completion --- src/Mod/Path/PathTests/TestPathAdaptive.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Mod/Path/PathTests/TestPathAdaptive.py b/src/Mod/Path/PathTests/TestPathAdaptive.py index 5c95b581f7..8e053df53d 100644 --- a/src/Mod/Path/PathTests/TestPathAdaptive.py +++ b/src/Mod/Path/PathTests/TestPathAdaptive.py @@ -74,11 +74,8 @@ class TestPathAdaptive(PathTestBase): ''' # FreeCAD.Console.PrintMessage("TestPathAdaptive.tearDownClass()\n") - # Do not close document unless unit tests are commandline only - if FreeCAD.GuiUp: - pass - else: - FreeCAD.closeDocument(FreeCAD.ActiveDocument.Name) + # Close geometry document without saving + FreeCAD.closeDocument(FreeCAD.ActiveDocument.Name) # Setup and tear down methods called before and after each unit test def setUp(self):