summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2016-11-23 11:01:56 +0100
committerMartin Basti <mbasti@redhat.com>2016-11-25 16:18:22 +0100
commit7fef9cbec725beed62eb425449083c59416ed975 (patch)
tree1914842caa626e97396faaf641ec1282f6da2ba7 /ipatests/test_xmlrpc
parent38e8719f728e6d54289507fe2c7f79f9272c45c0 (diff)
downloadfreeipa-7fef9cbec725beed62eb425449083c59416ed975.tar.gz
freeipa-7fef9cbec725beed62eb425449083c59416ed975.tar.xz
freeipa-7fef9cbec725beed62eb425449083c59416ed975.zip
Fix Python 3 bugs discovered by pylint
In Python 3 exception instances no longer have a message attribute. For most exceptions, str(e) or string formatting give the same result. Fix some renamed modules, module members and functions. https://fedorahosted.org/freeipa/ticket/4985 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipatests/test_xmlrpc')
-rw-r--r--ipatests/test_xmlrpc/test_automount_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/test_xmlrpc/test_automount_plugin.py b/ipatests/test_xmlrpc/test_automount_plugin.py
index e3ad8b49d..aa39b6066 100644
--- a/ipatests/test_xmlrpc/test_automount_plugin.py
+++ b/ipatests/test_xmlrpc/test_automount_plugin.py
@@ -106,7 +106,7 @@ class AutomountTest(XMLRPC_test):
skipped=(),
duplicatemaps=(),
duplicatekeys=(),
- )), res)
+ )), res) # pylint: disable=used-before-assignment
self.check_tofiles()
finally:
res = api.Command['automountlocation_del'](self.locname)['result']