summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/system.nim11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/system.nim b/lib/system.nim
index d59551d54..9e91bc7db 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -4123,10 +4123,13 @@ else:
 
 template doAssertRaises*(exception, code: untyped): typed =
   ## Raises ``AssertionError`` if specified ``code`` does not raise the
-  ## specified exception.
-  runnableExamples:
-    doAssertRaises(ValueError):
-      raise newException(ValueError, "Hello World")
+  ## specified exception. Example:
+  ##
+  ## .. 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