summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-rw-r--r--src/python/lmi/test/lmibase.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/python/lmi/test/lmibase.py b/src/python/lmi/test/lmibase.py
index 242c002..d01c647 100644
--- a/src/python/lmi/test/lmibase.py
+++ b/src/python/lmi/test/lmibase.py
@@ -74,6 +74,12 @@ class LmiTestCase(base.BaseLmiTestCase):
#: it wants to test indication events.
NEEDS_INDICATIONS = False
+ #: Says, whether the LMIShell intestines shall throw exception upon
+ #: failure or error. Having them disabled is a default behaviour of
+ #: LMIShell. If the TestCase prefers to have them enabled, it shall
+ #: override this property in its body and set it to ``True``.
+ USE_EXCEPTIONS = False
+
_SYSTEM_INAME = None
@classmethod
@@ -88,6 +94,7 @@ class LmiTestCase(base.BaseLmiTestCase):
@classmethod
def setUpClass(cls):
base.BaseLmiTestCase.setUpClass.im_func(cls)
+ LMIUtil.lmi_set_use_exceptions(cls.USE_EXCEPTIONS)
if cls.needs_indications():
cls.indication_port = random.randint(12000, 13000)
cls.indication_queue = Queue.Queue()