mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
test_keyring: Use str(e) instead of e.message for exceptions
Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
parent
b71fd2d3c9
commit
c44dd40b26
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user