Skip to content

Commit f1edc04

Browse files
committed
Reformat test (NFC)
1 parent b8f0ca0 commit f1edc04

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

lldb/test/API/commands/dwim-print/TestDWIMPrint.py

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,15 @@ def test_empty_expression(self):
121121
def test_nested_values(self):
122122
"""Test dwim-print with nested values (structs, etc)."""
123123
self.build()
124-
lldbutil.run_to_source_breakpoint(
125-
self, "break here", lldb.SBFileSpec("main.c")
126-
)
124+
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))
127125
self.runCmd("settings set auto-one-line-summaries false")
128126
self._expect_cmd(f"dwim-print s", "frame variable")
129127
self._expect_cmd(f"dwim-print (struct Structure)s", "expression")
130128

131129
def test_summary_strings(self):
132130
"""Test dwim-print with nested values (structs, etc)."""
133131
self.build()
134-
lldbutil.run_to_source_breakpoint(
135-
self, "break here", lldb.SBFileSpec("main.c")
136-
)
132+
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))
137133
self.runCmd("settings set auto-one-line-summaries false")
138134
self.runCmd("type summary add -e -s 'stub summary' Structure")
139135
self._expect_cmd(f"dwim-print s", "frame variable")
@@ -142,17 +138,13 @@ def test_summary_strings(self):
142138
def test_void_result(self):
143139
"""Test dwim-print does not surface an error message for void expressions."""
144140
self.build()
145-
lldbutil.run_to_source_breakpoint(
146-
self, "break here", lldb.SBFileSpec("main.c")
147-
)
141+
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))
148142
self.expect("dwim-print (void)15", matching=False, patterns=["(?i)error"])
149143

150144
def test_preserves_persistent_variables(self):
151145
"""Test dwim-print does not delete persistent variables."""
152146
self.build()
153-
lldbutil.run_to_source_breakpoint(
154-
self, "break here", lldb.SBFileSpec("main.c")
155-
)
147+
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))
156148
self.expect("dwim-print int $i = 15")
157149
# Run the same expression twice and verify success. This ensures the
158150
# first command does not delete the persistent variable.
@@ -162,7 +154,5 @@ def test_preserves_persistent_variables(self):
162154
def test_missing_type(self):
163155
"""The expected output of po opaque is its address (no error)"""
164156
self.build()
165-
lldbutil.run_to_source_breakpoint(
166-
self, "break here", lldb.SBFileSpec("main.c")
167-
)
168-
self.expect("dwim-print -O -- opaque", substrs=['0x'])
157+
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))
158+
self.expect("dwim-print -O -- opaque", substrs=["0x"])

0 commit comments

Comments
 (0)