python except as

This commit is contained in:
Christopher Dunn
2014-11-19 23:10:02 -06:00
parent 5fda247dab
commit 9aa6144b2a
3 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ def compareOutputs( expected, actual, message ):
def safeReadFile( path ):
try:
return file( path, 'rt' ).read()
except IOError, e:
except IOError as e:
return '<File "%s" is missing: %s>' % (path,e)
def runAllTests( jsontest_executable_path, input_dir = None,