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):