summaryrefslogtreecommitdiffstats
path: root/lldb/test/expression_command/call-throws/TestCallThatThrows.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/expression_command/call-throws/TestCallThatThrows.py')
-rw-r--r--lldb/test/expression_command/call-throws/TestCallThatThrows.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/expression_command/call-throws/TestCallThatThrows.py b/lldb/test/expression_command/call-throws/TestCallThatThrows.py
index 7d99d052774..e5ac994d7b5 100644
--- a/lldb/test/expression_command/call-throws/TestCallThatThrows.py
+++ b/lldb/test/expression_command/call-throws/TestCallThatThrows.py
@@ -2,7 +2,8 @@
Test calling a function that throws an ObjC exception, make sure that it doesn't propagate the exception.
"""
-import unittest2
+import lldb_shared
+
import lldb
import lldbutil
from lldbtest import *
@@ -107,9 +108,3 @@ class ExprCommandWithThrowTestCase(TestBase):
self.assertTrue (value.IsValid() and value.GetError().Success() == False)
self.check_after_call()
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud