changeset 5471:28613ada27db

check excpetion.args instead of exception.message
author Christof Meerwald <cmeerw@cmeerw.org>
date Sun, 29 Jul 2018 00:49:54 +0100
parents e2baa4e6ed6d
children e903835f0822
files test/test_xmlrpc.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_xmlrpc.py	Sat Jul 28 22:39:24 2018 +0100
+++ b/test/test_xmlrpc.py	Sun Jul 29 00:49:54 2018 +0100
@@ -169,7 +169,7 @@
         with self.assertRaises(Exception) as cm:
             self.server.action('bogus')
         print(cm.exception)
-        self.assertEqual(cm.exception.message,
+        self.assertEqual(cm.exception.args[0],
                          'action "bogus" is not supported ')
 
     def testAuthDeniedEdit(self):

Roundup Issue Tracker: http://roundup-tracker.org/