From 32afc1a562579d38e82ebb385186767dfb1bc3c8 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 10 Aug 2018 17:27:30 +0200 Subject: [PATCH] make tests green again --- examples/tunit.nim | 2 +- tests/exprs/tstmtexprs.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tunit.nim b/examples/tunit.nim index 26bcafda12..785b9aa5ee 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 61089b6948..615c360243 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)