File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 23232424#=============================================================================
2525##
26- # @date Last updated on: 2022-12-23
26+ # @date Last updated on: 2022-12-31
2727# @version Last updated for version: 7.2.0
2828#
2929# @file
@@ -814,17 +814,23 @@ def _run_script(fname):
814814 # QUTest_inst._fail() already done
815815 pass
816816
817+ except RuntimeError as e :
818+ QUTest ._display (str (e ), QUTest ._COL_ERR1 , QUTest ._COL_ERR2 )
819+ QSpy ._qspy_show (str (e ))
820+ QUTest_inst ._fail ()
821+
817822 except SyntaxError :
818823 QUTest ._display (traceback .format_exc (limit = 0 ),
819824 QUTest ._COL_ERR1 , QUTest ._COL_ERR2 )
820825 QSpy ._qspy_show (traceback .format_exc (limit = 0 ))
821826 QUTest ._num_failed += 1
822827 QUTest ._str_failed += " G%d" % (QUTest ._num_groups )
823-
824- except Exception as e :
828+
829+ except Exception :
825830 QUTest ._display (traceback .format_exc (),
826831 QUTest ._COL_ERR1 , QUTest ._COL_ERR2 )
827832 QUTest_inst ._fail ()
833+
828834 # properly end the last test in the group
829835 QUTest_inst ._test_end ()
830836 QUTest ._quit_host_exe ()
You can’t perform that action at this time.
0 commit comments