diff options
Diffstat (limited to 'lib/pure/unittest.nim')
-rw-r--r-- | lib/pure/unittest.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pure/unittest.nim b/lib/pure/unittest.nim index 65bcd5056..dd7009d63 100644 --- a/lib/pure/unittest.nim +++ b/lib/pure/unittest.nim @@ -382,8 +382,7 @@ macro expect*(exceptions: varargs[typed], body: untyped): untyped = ## expect IOError, OSError, ValueError, AssertionError: ## defectiveRobot() let exp = callsite() - template expectBody(errorTypes, lineInfoLit: expr, - body: stmt): NimNode {.dirty.} = + template expectBody(errorTypes, lineInfoLit, body): NimNode {.dirty.} = try: body checkpoint(lineInfoLit & ": Expect Failed, no exception was thrown.") |