From fe3650ceeaf8e715a4aac93e981d82ba321cbbb6 Mon Sep 17 00:00:00 2001 From: Tanguy Date: Fri, 10 Feb 2023 11:13:45 +0100 Subject: [PATCH] fix for 1.6 --- unittest2.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unittest2.nim b/unittest2.nim index 4c5b0cf..a66bfee 100644 --- a/unittest2.nim +++ b/unittest2.nim @@ -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("") @@ -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 =