diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-09-29 00:32:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-29 09:32:39 +0200 |
commit | f061971a9be5222f0f158f605220f3bda42f7488 (patch) | |
tree | f68d36d7e02b4b81055abef8437580247c401154 /testament/lib/stdtest/testutils.nim | |
parent | 08cf4cb1e58fad35be3846e98a308500ac2cfdb0 (diff) | |
download | Nim-f061971a9be5222f0f158f605220f3bda42f7488.tar.gz |
envPairs works in vm, nims (#18615)
* envPairs works in vm, nims * fixup
Diffstat (limited to 'testament/lib/stdtest/testutils.nim')
-rw-r--r-- | testament/lib/stdtest/testutils.nim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testament/lib/stdtest/testutils.nim b/testament/lib/stdtest/testutils.nim index a5476b8d7..12e6a56ab 100644 --- a/testament/lib/stdtest/testutils.nim +++ b/testament/lib/stdtest/testutils.nim @@ -1,5 +1,8 @@ import std/private/miscdollars -from std/os import getEnv +when defined(nimscript): + import std/os # xxx investigate why needed +else: + from std/os import getEnv import std/[macros, genasts] template flakyAssert*(cond: untyped, msg = "", notifySuccess = true) = @@ -26,7 +29,7 @@ template flakyAssert*(cond: untyped, msg = "", notifySuccess = true) = msg2.add $expr & " " & msg echo msg2 -when not defined(js): +when not defined(js) and not defined(nimscript): import std/strutils proc greedyOrderedSubsetLines*(lhs, rhs: string, allowPrefixMatch = false): bool = |