Skip to content

Commit

Permalink
Fix syntax error on Python 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Mar 4, 2016
1 parent 4572170 commit b442870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions supervisor/tests/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '
Expand Down Expand Up @@ -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 '
Expand Down

0 comments on commit b442870

Please sign in to comment.