python except as
diff --git a/test/runjsontests.py b/test/runjsontests.py
index ffe8bd5..5fca75a 100644
--- a/test/runjsontests.py
+++ b/test/runjsontests.py
@@ -34,7 +34,7 @@
 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,