aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-05-25 08:48:57 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-05-25 12:54:09 -0700
commit2238dcc39358353cac21df75c3c3286ab20b8f53 (patch)
tree1bb7ec8d7405ccd7fdb5a8a78d0cf5ef40bcc963 /lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
parentdaeee56798c51e8f007e8e8e6e677a420b14c9ef (diff)
downloadllvm-2238dcc39358353cac21df75c3c3286ab20b8f53.zip
llvm-2238dcc39358353cac21df75c3c3286ab20b8f53.tar.gz
llvm-2238dcc39358353cac21df75c3c3286ab20b8f53.tar.bz2
[NFC][Py Reformat] Reformat python files in lldb
This is an ongoing series of commits that are reformatting our Python code. Reformatting is done with `black` (23.1.0). If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run `git checkout --ours <yourfile>` and then reformat it with black. RFC: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Differential revision: https://reviews.llvm.org/D151460
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbgdbclient.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbgdbclient.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbgdbclient.py b/lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
index 320ae0d..459460b 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbgdbclient.py
@@ -4,6 +4,7 @@ import lldb
from lldbsuite.test.lldbtest import *
from lldbsuite.test.gdbclientutils import *
+
class GDBRemoteTestBase(TestBase):
"""
Base class for GDB client tests.
@@ -52,8 +53,9 @@ class GDBRemoteTestBase(TestBase):
"""
listener = self.dbg.GetListener()
error = lldb.SBError()
- process = target.ConnectRemote(listener,
- self.server.get_connect_url(), "gdb-remote", error)
+ process = target.ConnectRemote(
+ listener, self.server.get_connect_url(), "gdb-remote", error
+ )
self.assertTrue(error.Success(), error.description)
self.assertTrue(process, PROCESS_IS_VALID)
return process
@@ -79,8 +81,10 @@ class GDBRemoteTestBase(TestBase):
i += 1
j += 1
if i < len(packets):
- self.fail(u"Did not receive: %s\nLast 10 packets:\n\t%s" %
- (packets[i], u'\n\t'.join(log)))
+ self.fail(
+ "Did not receive: %s\nLast 10 packets:\n\t%s"
+ % (packets[i], "\n\t".join(log))
+ )
class GDBPlatformClientTestBase(GDBRemoteTestBase):