fix for 1.6

This commit is contained in:
Tanguy 2023-02-10 11:13:45 +01:00
parent 39ed5a784e
commit fe3650ceea
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E
1 changed files with 3 additions and 3 deletions

View File

@ -154,7 +154,7 @@ else:
when (NimMajor, NimMinor) > (1, 2):
from std/exitprocs import nil
template addExitProc(p: proc) =
when (NimMajor, NimMinor) > (1, 6):
when (NimMajor, NimMinor) >= (1, 6):
exitprocs.addExitProc(p)
else:
try:
@ -537,7 +537,7 @@ method testRunEnded*(formatter: JUnitOutputFormatter) =
## Completes the report and closes the underlying stream.
let s = formatter.stream
when (NimMajor, NimMinor) > (1, 6):
when (NimMajor, NimMinor) >= (1, 6):
{.warning[BareExcept]:off.}
try:
s.writeLine("<testsuites>")
@ -554,7 +554,7 @@ method testRunEnded*(formatter: JUnitOutputFormatter) =
echo "Cannot write JUnit: ", exc.msg
quit 1
when (NimMajor, NimMinor) > (1, 6):
when (NimMajor, NimMinor) >= (1, 6):
{.warning[BareExcept]:on.}
proc glob(matcher, filter: string): bool =