Added: type name output when exception raised from unittest (#7869)

This commit is contained in:
七秒不觉梦 2018-05-28 10:24:04 +08:00 • committed by Dmitry Atamanov
commit b6b6382e0b
3 changed files with 19 additions and 3 deletions

View file

@ -0,0 +1,10 @@
discard """
exitcode: 1
outputsub: '''exception type is [ValueError]'''
"""
import unittest
suite "exception from test":
test "show exception type":
raise newException(ValueError, "exception type is")