mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
make tests green again
This commit is contained in:
@@ -42,6 +42,6 @@ test "arithmetic failure":
|
||||
expect(ArithmeticError):
|
||||
err()
|
||||
|
||||
expect(ArithmeticError, SystemError):
|
||||
expect(ArithmeticError, CatchableError):
|
||||
discard foo()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user