From: Oleg Broytman Date: Thu, 28 Jul 2016 22:50:11 +0000 (+0300) Subject: Use except SystemExit as msg for Python 3 compatibility X-Git-Tag: 0.0.1~52 X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=commitdiff_plain;h=c0922afe9f91f53ef0d34483c4f0b824e31d0d68 Use except SystemExit as msg for Python 3 compatibility --- diff --git a/tests/__init__.py b/tests/__init__.py index 3c09ede..d26523d 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -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