make tests more robust; tests should be deterministic, no randomize() calls in tests

This commit is contained in:
Araq 2019-01-13 13:54:44 +01:00
commit 796432ff94
3 changed files with 16 additions and 14 deletions

View file

@ -93,4 +93,7 @@ else:
doAssert outStr2 == absolutePath(testDir) & "\nx yz\n"
removeDir(testDir)
removeFile(exePath)
try:
removeFile(exePath)
except OSError:
discard