Skip to content

Commit

Permalink
7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum-leaps committed Jan 2, 2023
1 parent 26df1d6 commit e4635c0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions qutest/qutest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# <[email protected]>
#=============================================================================
##
# @date Last updated on: 2022-12-23
# @date Last updated on: 2022-12-31
# @version Last updated for version: 7.2.0
#
# @file
Expand Down Expand Up @@ -814,17 +814,23 @@ def _run_script(fname):
# QUTest_inst._fail() already done
pass

except RuntimeError as e:
QUTest._display(str(e), QUTest._COL_ERR1, QUTest._COL_ERR2)
QSpy._qspy_show(str(e))
QUTest_inst._fail()

except SyntaxError:
QUTest._display(traceback.format_exc(limit=0),
QUTest._COL_ERR1, QUTest._COL_ERR2)
QSpy._qspy_show(traceback.format_exc(limit=0))
QUTest._num_failed += 1
QUTest._str_failed += " G%d"%(QUTest._num_groups)
except Exception as e:

except Exception:
QUTest._display(traceback.format_exc(),
QUTest._COL_ERR1, QUTest._COL_ERR2)
QUTest_inst._fail()

# properly end the last test in the group
QUTest_inst._test_end()
QUTest._quit_host_exe()
Expand Down

0 comments on commit e4635c0

Please sign in to comment.