summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2015-09-18 14:10:17 +0200
committerTomas Babej <tbabej@redhat.com>2015-10-13 14:16:32 +0200
commitc44dd40b26bd9803d042cc75b133b739838a9022 (patch)
tree7eab91e9e1e76f820a5192ed7cdc8602f6bc543a
parentb71fd2d3c9573c81a376c420df25a319149c5b7d (diff)
downloadfreeipa-c44dd40b26bd9803d042cc75b133b739838a9022.tar.gz
freeipa-c44dd40b26bd9803d042cc75b133b739838a9022.tar.xz
freeipa-c44dd40b26bd9803d042cc75b133b739838a9022.zip
test_keyring: Use str(e) instead of e.message for exceptions
Reviewed-By: Tomas Babej <tbabej@redhat.com>
-rw-r--r--ipatests/test_ipapython/test_keyring.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipatests/test_ipapython/test_keyring.py b/ipatests/test_ipapython/test_keyring.py
index 9a5fc98ea..0a7f0980c 100644
--- a/ipatests/test_ipapython/test_keyring.py
+++ b/ipatests/test_ipapython/test_keyring.py
@@ -60,7 +60,7 @@ class test_keyring(object):
try:
result = kernel_keyring.read_key(TEST_KEY)
except ValueError as e:
- assert e.message == 'key %s not found' % TEST_KEY
+ assert str(e) == 'key %s not found' % TEST_KEY
def test_02(self):
"""