Skip to content

Commit

Permalink
FreeCADTest.py invokes sys.exit() instead of the more aggressive os._…
Browse files Browse the repository at this point in the history
…exit()

With the ability to now pass the <exitCode> 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.
  • Loading branch information
bblacey authored and wwmayer committed Mar 21, 2016
1 parent 9816e48 commit feac22b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App/FreeCADTest.py
Expand Up @@ -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)

0 comments on commit feac22b

Please sign in to comment.