aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2022-07-22 10:31:44 -0700
committerTim Newsome <tim@sifive.com>2022-07-22 10:31:44 -0700
commit74a62ef0f3eefa759c1c49ae1c756879232f96da (patch)
treeb76d119d0c078d25792e51a79ef7640322767961 /debug
parentc1b75177a7bd0932aaa95f1a369b6c3e68cacdee (diff)
downloadriscv-tests-74a62ef0f3eefa759c1c49ae1c756879232f96da.zip
riscv-tests-74a62ef0f3eefa759c1c49ae1c756879232f96da.tar.gz
riscv-tests-74a62ef0f3eefa759c1c49ae1c756879232f96da.tar.bz2
Fix string formatting in testlib.assertTrue()
Diffstat (limited to 'debug')
-rw-r--r--debug/testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index cfb31a3..1f023f0 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -1310,7 +1310,7 @@ def assertLess(a, b, comment=None):
def assertTrue(a):
if not a:
- raise TestFailed(f"{a!r} is not True" % a)
+ raise TestFailed(f"{a!r} is not True", a)
def assertRegex(text, regexp):
if not re.search(regexp, text):