فهرست منبع

Fix syntax error on Python 2.5

Mike Naberezny 9 سال پیش
والد
کامیت
b442870c72
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      supervisor/tests/test_options.py

+ 2 - 2
supervisor/tests/test_options.py

@@ -1138,7 +1138,7 @@ class ServerOptionsTests(unittest.TestCase):
         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 @@ class ServerOptionsTests(unittest.TestCase):
         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 '