From b442870c7207a895b75bc8fa08bcaf7e29ca89ad Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Fri, 4 Mar 2016 12:01:32 -0800 Subject: [PATCH] Fix syntax error on Python 2.5 --- supervisor/tests/test_options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supervisor/tests/test_options.py b/supervisor/tests/test_options.py index 8d9ebdad9..8e53cd369 100644 --- a/supervisor/tests/test_options.py +++ b/supervisor/tests/test_options.py @@ -1138,7 +1138,7 @@ def test_options_afunix_username_without_password(self): try: instance.read_config(StringIO(text)) self.fail("nothing raised") - except ValueError as exc: + except ValueError, exc: self.assertEqual(exc.args[0], 'Section [unix_http_server] contains incomplete ' 'authentication: If a username or a password is ' @@ -1207,7 +1207,7 @@ def test_options_afinet_username_without_password(self): try: instance.read_config(StringIO(text)) self.fail("nothing raised") - except ValueError as exc: + except ValueError, exc: self.assertEqual(exc.args[0], 'Section [inet_http_server] contains incomplete ' 'authentication: If a username or a password is '