summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/hello_world/TestHelloWorld.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/hello_world/TestHelloWorld.py')
-rw-r--r--lldb/test/python_api/hello_world/TestHelloWorld.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/python_api/hello_world/TestHelloWorld.py b/lldb/test/python_api/hello_world/TestHelloWorld.py
index 8e586c8dcdf..1800dd0fb69 100644
--- a/lldb/test/python_api/hello_world/TestHelloWorld.py
+++ b/lldb/test/python_api/hello_world/TestHelloWorld.py
@@ -1,7 +1,8 @@
"""Test Python APIs for target (launch and attach), breakpoint, and process."""
+import lldb_shared
+
import os, sys, time
-import unittest2
import lldb
import time
from lldbtest import *
@@ -139,9 +140,3 @@ class HelloWorldTestCase(TestBase):
self.expect(stacktraces, exe=False,
substrs = ['main.c:%d' % self.line2,
'(int)argc=3'])
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud