mirror of
https://github.com/logos-storage/asynctest.git
synced 2026-01-04 05:53:10 +00:00
Fix for unittest2 > 0.0.9
Define our templates inside a new scope, to make sure that they don't clash with the unittest2 templates.
This commit is contained in:
parent
9f31323a5f
commit
33af46fc3f
@ -20,6 +20,7 @@ template launderExceptions(body: typed) =
|
||||
template suite*(name, body) =
|
||||
|
||||
suite name:
|
||||
let suiteproc = proc = # Avoids GcUnsafe2 warnings with chronos
|
||||
|
||||
## Runs before all tests in the suite
|
||||
template setupAll(setupAllBody) {.used.} =
|
||||
@ -44,7 +45,6 @@ template suite*(name, body) =
|
||||
waitFor asyncproc()
|
||||
setCurrentException(exception)
|
||||
|
||||
let suiteproc = proc = # Avoids GcUnsafe2 warnings with chronos
|
||||
body
|
||||
|
||||
when declared(teardownAllIMPL):
|
||||
|
||||
@ -3,7 +3,7 @@ author = "Asynctest Authors"
|
||||
description = "Asynctest tests for pkg/unittest2 and pkg/chronos"
|
||||
license = "MIT"
|
||||
|
||||
requires "unittest2 <= 0.0.9"
|
||||
requires "unittest2"
|
||||
requires "chronos"
|
||||
|
||||
task test, "Runs the test suite":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user