From 51adf42fdc0cec17e5e4420aa36e1d8f75252bac Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Sun, 29 Aug 2004 08:31:59 +0000 Subject: When Lasso doesn't recognize the URL query, it now throws a SyntaxError exception. --- python/tests/profiles_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') 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.') -- cgit