summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-08-29 08:31:59 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-08-29 08:31:59 +0000
commit51adf42fdc0cec17e5e4420aa36e1d8f75252bac (patch)
treeab63af9ecab4a231118a860b3f31993427c65587 /python
parentb27283f775f6f3ca65c6519427e83861baaf5229 (diff)
downloadlasso-51adf42fdc0cec17e5e4420aa36e1d8f75252bac.tar.gz
lasso-51adf42fdc0cec17e5e4420aa36e1d8f75252bac.tar.xz
lasso-51adf42fdc0cec17e5e4420aa36e1d8f75252bac.zip
When Lasso doesn't recognize the URL query, it now throws a SyntaxError
exception.
Diffstat (limited to 'python')
-rwxr-xr-xpython/tests/profiles_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tests/profiles_tests.py b/python/tests/profiles_tests.py
index 6aba8e80..0fced9e6 100755
--- a/python/tests/profiles_tests.py
+++ b/python/tests/profiles_tests.py
@@ -151,8 +151,8 @@ class DefederationTestCase(unittest.TestCase):
# The process_notification_msg should failt but not abort.
try:
defederation.process_notification_msg('nonLibertyQuery=1', lasso.httpMethodRedirect)
- except RuntimeError, error:
- errorCode = int(error.args[0].split(' ', 1)[0])
+ except SyntaxError:
+ pass
else:
self.fail('Defederation process_notification_msg should have failed.')