# HG changeset patch # User Edouard Tisserant # Date 1519910935 -3600 # Node ID b4a1ba9dbaf32f8201a063c42912c985ba012e1f # Parent 372ec456664cf60972b332800cc033c5f57b639c fix for test app from skv. thanks diff -r 372ec456664c -r b4a1ba9dbaf3 tests/tools/test_application.py --- a/tests/tools/test_application.py Thu Mar 01 10:28:17 2018 +0100 +++ b/tests/tools/test_application.py Thu Mar 01 14:28:55 2018 +0100 @@ -41,7 +41,7 @@ class UserApplicationTest(unittest.TestCase): def InstallExceptionHandler(self): - def handle_exception(e_type, e_value, e_traceback): + def handle_exception(e_type, e_value, e_traceback, exit=False): # traceback.print_exception(e_type, e_value, e_traceback) self.exc_info = [e_type, e_value, e_traceback] self.exc_info = None @@ -89,7 +89,9 @@ # disable default exception handler in Beremiz self.app.InstallExceptionHandler = lambda: None self.InstallExceptionHandler() + self.app.handle_exception = sys.excepthook self.app.PreStart() + self.ProcessEvents() self.app.frame.Show() self.ProcessEvents() self.app.frame.ShowFullScreen(True)