Fix tests a bit more

This commit is contained in:
def 2015-03-10 15:34:15 +01:00
commit 69e2b61c0a
5 changed files with 13 additions and 13 deletions

View file

@ -65,13 +65,13 @@ proc testGetFileInfo =
try:
discard getFileInfo(testFile)
#echo("Handle : Valid File : Success")
except EIO:
except IOError:
echo("Handle : Valid File : Failure")
try:
discard getFileInfo(testHandle)
#echo("Handle : Valid File : Success")
except EIO:
except IOError:
echo("Handle : Valid File : Failure")
# Case 6 and 8
@ -82,14 +82,14 @@ proc testGetFileInfo =
try:
discard getFileInfo(testFile)
echo("Handle : Invalid File : Failure")
except EIO, EOS:
except IOError, OSError:
discard
#echo("Handle : Invalid File : Success")
try:
discard getFileInfo(testHandle)
echo("Handle : Invalid File : Failure")
except EIO, EOS:
except IOError, OSError:
discard
#echo("Handle : Invalid File : Success")