Skip to content

Commit

Permalink
try another Windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stefantalpalaru committed Feb 10, 2021
1 parent 0f1a045 commit 4388b7a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/tparser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# See the file "copying.txt", included in this
# distribution, for details about the copyright.

import os, terminal, strutils, streams, macros, unittest, sets
import os, terminal, strutils, streams, macros, unittest, sets, osproc
import testEventParser, commonTestUtils
import ../yaml, ../yaml/data

Expand All @@ -21,12 +21,10 @@ proc parserTest(path: string, errorExpected : bool): bool =
parser: YamlParser
parser.init(tagLib)
var
actualIn = newFileStream(path & "/in.yaml")
actual = parser.parse(actualIn)
expectedIn = newFileStream(path & "/test.event")
actual = parser.parse(execCmdEx("cat " & path & "/in.yaml")[0])
expectedIn = newStringStream(execCmdEx("cat " & path & "/test.event")[0])
expected = parseEventStream(expectedIn, tagLib)
defer:
actualIn.close()
expectedIn.close()
var i = 1
try:
Expand Down

0 comments on commit 4388b7a

Please sign in to comment.