summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/formatters/TestFormattersSBAPI.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/formatters/TestFormattersSBAPI.py')
-rw-r--r--lldb/test/python_api/formatters/TestFormattersSBAPI.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/test/python_api/formatters/TestFormattersSBAPI.py b/lldb/test/python_api/formatters/TestFormattersSBAPI.py
index 804f504b3da..b6d693ff1fd 100644
--- a/lldb/test/python_api/formatters/TestFormattersSBAPI.py
+++ b/lldb/test/python_api/formatters/TestFormattersSBAPI.py
@@ -1,7 +1,8 @@
"""Test Python APIs for working with formatters"""
+import lldb_shared
+
import os, sys, time
-import unittest2
import lldb
from lldbtest import *
import lldbutil
@@ -339,10 +340,3 @@ class SBFormattersAPITestCase(TestBase):
if self.TraceOn():
print int_vector
self.assertTrue(int_vector.GetNumChildren() == 0, 'synthetic vector is still empty')
-
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud