Added: type name output when exception raised from unittest (#7869)
This commit is contained in:
parent
21fb0db6e2
commit
b6b6382e0b
3 changed files with 19 additions and 3 deletions
10
tests/stdlib/tunittestexceptiontype.nim
Normal file
10
tests/stdlib/tunittestexceptiontype.nim
Normal 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue