Skip to content

Commit e4635c0

Browse files
committed
7.2.0
1 parent 26df1d6 commit e4635c0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

qutest/qutest.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
#=============================================================================
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()

0 commit comments

Comments
 (0)