Skip to content

Commit e76f873

Browse files
committed
Fixing py format.
1 parent 9f771a4 commit e76f873

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

lldb/packages/Python/lldbsuite/test/tools/lldb-dap/dap_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def send_packet(self, packet: ProtocolMessage) -> int:
474474
"""
475475
packet["seq"] = self.sequence
476476
self.sequence += 1
477-
477+
478478
# Encode our command dictionary as a JSON string
479479
json_str = json.dumps(packet, separators=(",", ":"))
480480

lldb/test/API/tools/lldb-dap/breakpoint-events/TestDAP_breakpointEvents.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,12 @@ def test_breakpoint_events(self):
8989

9090
bp_events = [e for e in self.dap_server.events if e["event"] == "breakpoint"]
9191

92-
main_bp_events = [e for e in bp_events if e['body']['breakpoint']['id'] == main_bp_id]
93-
foo_bp_events = [e for e in bp_events if e['body']['breakpoint']['id'] == foo_bp_id]
92+
main_bp_events = [
93+
e for e in bp_events if e["body"]["breakpoint"]["id"] == main_bp_id
94+
]
95+
foo_bp_events = [
96+
e for e in bp_events if e["body"]["breakpoint"]["id"] == foo_bp_id
97+
]
9498

9599
self.assertTrue(main_bp_events)
96100
self.assertTrue(foo_bp_events)

lldb/test/API/tools/lldb-dap/restart/TestDAP_restart_console.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_stopOnEntry(self):
102102
self.assertEqual(
103103
len(stopped_threads), 1, "Expected the main thread to be stopped on entry."
104104
)
105-
self.assertEqual(stopped_threads[0]['reason'], 'entry')
105+
self.assertEqual(stopped_threads[0]["reason"], "entry")
106106

107107
# Then, if we continue, we should hit the breakpoint at main.
108108
self.dap_server.request_continue()
@@ -116,7 +116,7 @@ def test_stopOnEntry(self):
116116
self.assertEqual(
117117
len(stopped_threads), 1, "Expected the main thread to be stopped on entry."
118118
)
119-
self.assertEqual(stopped_threads[0]['reason'], 'entry')
119+
self.assertEqual(stopped_threads[0]["reason"], "entry")
120120

121121
# continue to main
122122
self.dap_server.request_continue()

0 commit comments

Comments
 (0)