summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-08-10 17:27:30 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-10 17:27:30 +0200
commit32afc1a562579d38e82ebb385186767dfb1bc3c8 (patch)
tree6449f4d903e0a713ac96b61a5ae5736b891e65b5
parent60c7a0a08ff3beb48cd1a4885646168007b827a0 (diff)
downloadNim-32afc1a562579d38e82ebb385186767dfb1bc3c8.tar.gz
make tests green again
-rw-r--r--examples/tunit.nim2
-rw-r--r--tests/exprs/tstmtexprs.nim2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/tunit.nim b/examples/tunit.nim
index 26bcafda1..785b9aa5e 100644
--- a/examples/tunit.nim
+++ b/examples/tunit.nim
@@ -42,6 +42,6 @@ test "arithmetic failure":
   expect(ArithmeticError):
     err()
 
-  expect(ArithmeticError, SystemError):
+  expect(ArithmeticError, CatchableError):
     discard foo()
 
diff --git a/tests/exprs/tstmtexprs.nim b/tests/exprs/tstmtexprs.nim
index 61089b694..615c36024 100644
--- a/tests/exprs/tstmtexprs.nim
+++ b/tests/exprs/tstmtexprs.nim
@@ -87,7 +87,7 @@ proc parseResponse(): JsonNode =
     var excMsg = key & "("
     if (var n=result["key2"]; n != nil):
       excMsg &= n.str
-    raise newException(SystemError, excMsg)
+    raise newException(CatchableError, excMsg)