From feac22b00d1e7dd419c2c13369296ae91f41a84b Mon Sep 17 00:00:00 2001 From: Bruce Lacey Date: Sat, 19 Mar 2016 10:13:25 -0700 Subject: [PATCH] FreeCADTest.py invokes sys.exit() instead of the more aggressive os._exit() With the ability to now pass the from sys.exit() up the call stack to the shell, FreeCADTest.py should use sys.exit() instead of the more aggressive os._exit() method that does not allow for post-exception cleanup. --- src/App/FreeCADTest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/FreeCADTest.py b/src/App/FreeCADTest.py index ac396a58fb..f760d10064 100644 --- a/src/App/FreeCADTest.py +++ b/src/App/FreeCADTest.py @@ -32,10 +32,10 @@ Log ("FreeCAD test running...\n\n") -import TestApp, os +import TestApp, sys testResult = TestApp.TestText("TestApp.All") Log ("FreeCAD test done\n") -os._exit(0 if testResult.wasSuccessful() else 1) +sys.exit(0 if testResult.wasSuccessful() else 1)