summary refs log tree commit diff stats
path: root/tests/effects/teffects7.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/effects/teffects7.nim')
-rw-r--r--tests/effects/teffects7.nim8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/effects/teffects7.nim b/tests/effects/teffects7.nim
index 1cd144459..9b7fbf5f0 100644
--- a/tests/effects/teffects7.nim
+++ b/tests/effects/teffects7.nim
@@ -1,14 +1,16 @@
 discard """
-  errormsg: "can raise an unlisted exception: ref FloatingPointError"
+  errormsg: "can raise an unlisted exception: ref ValueError"
   line: 10
 """
-
+{.push warningAsError[Effect]: on.}
 proc foo() {.raises: [].} =
   try:
     discard
   except KeyError:
-    raise newException(FloatingPointError, "foo")
+    raise newException(ValueError, "foo")
   except Exception:
     discard
 
 foo()
+
+{.pop.}