summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/watchpoint/TestWatchpointIter.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/watchpoint/TestWatchpointIter.py')
-rw-r--r--lldb/test/python_api/watchpoint/TestWatchpointIter.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/test/python_api/watchpoint/TestWatchpointIter.py b/lldb/test/python_api/watchpoint/TestWatchpointIter.py
index 8a6877930ee..0ba73c0500b 100644
--- a/lldb/test/python_api/watchpoint/TestWatchpointIter.py
+++ b/lldb/test/python_api/watchpoint/TestWatchpointIter.py
@@ -2,9 +2,10 @@
Use lldb Python SBTarget API to iterate on the watchpoint(s) for the target.
"""
+import lldb_shared
+
import os, time
import re
-import unittest2
import lldb, lldbutil
from lldbtest import *
@@ -108,10 +109,3 @@ class WatchpointIteratorTestCase(TestBase):
self.assertTrue(watchpoint.GetWatchSize() == 4)
self.assertTrue(watchpoint.GetHitCount() == 1)
print watchpoint
-
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
OpenPOWER on IntegriCloud