Skip to content

Commit 552c4f6

Browse files
committed
[lldb] Remove __main__ from two tests (NFC) (#4029)
(cherry picked from commit f1cb889)
1 parent 7cfcec0 commit 552c4f6

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lldb/test/API/functionalities/data-formatter/swift-typealias/TestSwiftTypeAliasFormatters.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,3 @@ def cleanup():
6262
self.runCmd("type summary add -C no -v a.Foo -s hello")
6363
self.expect("frame variable f", substrs=['Foo) f = hello'])
6464
self.expect("frame variable b", substrs=['Bar) b = (value = 24)'])
65-
66-
67-
if __name__ == '__main__':
68-
import atexit
69-
lldb.SBDebugger.Initialize()
70-
atexit.register(lambda: lldb.SBDebugger.Terminate())
71-
unittest2.main()

lldb/test/API/lang/swift/optional_of_resilient/TestResilientObjectInOptional.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,3 @@ def doTest(self):
5656
a_var = opt_var.GetChildMemberWithName("a")
5757
self.assertTrue(a_var.GetError().Success(), "The resilient child was 'a'")
5858
lldbutil.check_variable(self, a_var, False, value="1")
59-
60-
if __name__ == '__main__':
61-
import atexit
62-
lldb.SBDebugger.Initialize()
63-
atexit.register(lldb.SBDebugger.Terminate)
64-
unittest2.main()

0 commit comments

Comments
 (0)