summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/objc/objc-static-method
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/lang/objc/objc-static-method')
-rw-r--r--lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py b/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py
index c54d23b6105..443c4c5af41 100644
--- a/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py
+++ b/lldb/test/lang/objc/objc-static-method/TestObjCStaticMethod.py
@@ -1,7 +1,8 @@
"""Test calling functions in static methods."""
+import lldb_shared
+
import os, time
-import unittest2
import lldb
import lldbutil
from lldbtest import *
@@ -56,9 +57,3 @@ class TestObjCStaticMethod(TestBase):
self.assertTrue (cmd_value.IsValid())
string_length = cmd_value.GetValueAsUnsigned()
self.assertTrue (string_length == 27, "Got the right value from another class method on the same class.")
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud