From 34bd2b63377772f3dabc0eb36f7021238df286a6 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 5 Dec 2016 10:42:33 +0100 Subject: [PATCH] Fetch correct exception in IPA_CONFDIR test fixes c2934aaa Signed-off-by: Christian Heimes Reviewed-By: Jan Cholasta --- ipatests/test_ipalib/test_plugable.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ipatests/test_ipalib/test_plugable.py b/ipatests/test_ipalib/test_plugable.py index ff224466e..695461022 100644 --- a/ipatests/test_ipalib/test_plugable.py +++ b/ipatests/test_ipalib/test_plugable.py @@ -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: