aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2023-09-12 08:46:34 +0100
committerGitHub <noreply@github.com>2023-09-12 08:46:34 +0100
commitc8387a31a4adfa9c29a578cf67321f756d3b4ac1 (patch)
tree1da6be81cabb758c47771e4bd41a0d8e913f4b42 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parent6bf6c4762c355ce4f4fb976039375a2c8ff6038f (diff)
downloadllvm-c8387a31a4adfa9c29a578cf67321f756d3b4ac1.zip
llvm-c8387a31a4adfa9c29a578cf67321f756d3b4ac1.tar.gz
llvm-c8387a31a4adfa9c29a578cf67321f756d3b4ac1.tar.bz2
[lldb] Format more Python files with black (#65979)
By running this from lldb/ $ black --exclude "third_party/|scripts/|utils/" ./
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 50e8ad0..c8670b2 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -2604,15 +2604,16 @@ FileCheck output:
if not obj.Success():
error = obj.GetCString()
self.fail(self._formatMessage(msg, "'{}' is not success".format(error)))
+
"""Assert that an lldb.SBError is in the "failure" state."""
- def assertFailure(self, obj, error_str = None, msg=None):
+ def assertFailure(self, obj, error_str=None, msg=None):
if obj.Success():
self.fail(self._formatMessage(msg, "Error not in a fail state"))
if error_str == None:
return
-
+
error = obj.GetCString()
self.assertEqual(error, error_str, msg)