Path: Close Adaptive geometry source file upon unit test completion

This commit is contained in:
Russell Johnson
2021-07-24 21:59:05 -05:00
parent 65a59b102f
commit 8ce14b2a2b

View File

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