mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
fixes #8223
This commit is contained in:
@@ -4128,11 +4128,10 @@ template doAssertRaises*(exception, code: untyped): typed =
|
||||
## .. code-block:: nim
|
||||
## doAssertRaises(ValueError):
|
||||
## raise newException(ValueError, "Hello World")
|
||||
# TODO: investigate why runnableExamples here caused
|
||||
# https://github.com/nim-lang/Nim/issues/8223
|
||||
var wrong = false
|
||||
try:
|
||||
code
|
||||
if true:
|
||||
code
|
||||
wrong = true
|
||||
except exception:
|
||||
discard
|
||||
|
||||
Reference in New Issue
Block a user