Skip to content

Commit b442870

Browse files
committed
Fix syntax error on Python 2.5
1 parent 4572170 commit b442870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supervisor/tests/test_options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ def test_options_afunix_username_without_password(self):
11381138
try:
11391139
instance.read_config(StringIO(text))
11401140
self.fail("nothing raised")
1141-
except ValueError as exc:
1141+
except ValueError, exc:
11421142
self.assertEqual(exc.args[0],
11431143
'Section [unix_http_server] contains incomplete '
11441144
'authentication: If a username or a password is '
@@ -1207,7 +1207,7 @@ def test_options_afinet_username_without_password(self):
12071207
try:
12081208
instance.read_config(StringIO(text))
12091209
self.fail("nothing raised")
1210-
except ValueError as exc:
1210+
except ValueError, exc:
12111211
self.assertEqual(exc.args[0],
12121212
'Section [inet_http_server] contains incomplete '
12131213
'authentication: If a username or a password is '

0 commit comments

Comments
 (0)