summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/system.nim b/lib/system.nim
index fed02f6d0..f96f97dd6 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -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