diff options
Diffstat (limited to 'lldb/test/python_api/frame')
-rw-r--r-- | lldb/test/python_api/frame/TestFrames.py | 8 | ||||
-rw-r--r-- | lldb/test/python_api/frame/inlines/TestInlinedFrame.py | 9 |
2 files changed, 2 insertions, 15 deletions
diff --git a/lldb/test/python_api/frame/TestFrames.py b/lldb/test/python_api/frame/TestFrames.py index 42fa8b9d1f4..b13edd09396 100644 --- a/lldb/test/python_api/frame/TestFrames.py +++ b/lldb/test/python_api/frame/TestFrames.py @@ -7,7 +7,6 @@ import lldb_shared import os, time import re -import unittest2 import lldb, lldbutil from lldbtest import * @@ -200,10 +199,3 @@ class FrameAPITestCase(TestBase): # The latest two frames should not be equal. self.assertFalse(frameOutOfC.IsEqual(frameNow)) - - -if __name__ == '__main__': - import atexit - lldb.SBDebugger.Initialize() - atexit.register(lambda: lldb.SBDebugger.Terminate()) - unittest2.main() diff --git a/lldb/test/python_api/frame/inlines/TestInlinedFrame.py b/lldb/test/python_api/frame/inlines/TestInlinedFrame.py index 98bd8e60109..e5e53918190 100644 --- a/lldb/test/python_api/frame/inlines/TestInlinedFrame.py +++ b/lldb/test/python_api/frame/inlines/TestInlinedFrame.py @@ -2,9 +2,10 @@ Testlldb Python SBFrame APIs IsInlined() and GetFunctionName(). """ +import lldb_shared + import os, time import re -import unittest2 import lldb, lldbutil from lldbtest import * @@ -73,9 +74,3 @@ class InlinedFrameAPITestCase(TestBase): print stack_traces2 self.expect(stack_traces2, "Second stop at %s:%d" % (self.source, self.second_stop), exe=False, substrs = ['%s:%d' % (self.source, self.second_stop)]) - -if __name__ == '__main__': - import atexit - lldb.SBDebugger.Initialize() - atexit.register(lambda: lldb.SBDebugger.Terminate()) - unittest2.main() |