summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests')
-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.')