]> git.phdru.name Git - sqlconvert.git/commitdiff
Use except SystemExit as msg for Python 3 compatibility
authorOleg Broytman <phd@phdru.name>
Thu, 28 Jul 2016 22:50:11 +0000 (01:50 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 28 Jul 2016 22:50:11 +0000 (01:50 +0300)
tests/__init__.py

index 3c09ede07dac7f3cec0a1a0f851037e0670a6e2c..d26523dacc43f89de6e16e6bc85aa6932033ecff 100644 (file)
@@ -15,7 +15,7 @@ class TestCase(unittest.TestCase):
 def main():
     try:
         unittest.main(testRunner=unittest.TextTestRunner())
-    except SystemExit, msg:
+    except SystemExit as msg:
         result = msg.args[0]
     else:
         result = 0