mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
Fetch correct exception in IPA_CONFDIR test
fixes c2934aaa
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
This commit is contained in:
parent
c2934aaa7e
commit
34bd2b6337
@ -28,7 +28,6 @@ import os
|
||||
import textwrap
|
||||
|
||||
from ipalib import plugable, errors, create_api
|
||||
from ipapython.admintool import ScriptError
|
||||
from ipatests.util import raises, read_only
|
||||
from ipatests.util import ClassChecker, create_test_api, TempHome
|
||||
|
||||
@ -301,7 +300,7 @@ class test_API(ClassChecker):
|
||||
|
||||
os.environ['IPA_CONFDIR'] = home.join('invalid')
|
||||
api = create_api(mode='unit_test')
|
||||
with pytest.raises(ScriptError):
|
||||
with pytest.raises(errors.EnvironmentError):
|
||||
api.bootstrap()
|
||||
finally:
|
||||
if ipa_confdir:
|
||||
|
Loading…
Reference in New Issue
Block a user