From c0922afe9f91f53ef0d34483c4f0b824e31d0d68 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 29 Jul 2016 01:50:11 +0300 Subject: [PATCH] Use except SystemExit as msg for Python 3 compatibility --- tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5