summaryrefslogtreecommitdiff
path: root/suite
diff options
context:
space:
mode:
Diffstat (limited to 'suite')
-rw-r--r--suite/testcommon.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/suite/testcommon.py b/suite/testcommon.py
index 45345949..e56b94d9 100644
--- a/suite/testcommon.py
+++ b/suite/testcommon.py
@@ -151,10 +151,10 @@ class BinaryViewTestBuilder(Builder):
bblist = []
for func in self.bv.functions:
for bb in func.basic_blocks:
- bblist.append("basic block {} start: ".format(str(bb)) + hex(bb.start) + ' end: ' + hex(bb.end) + ' undetermined outgoing edges: ' + str(bb.has_undetermined_outgoing_edges) + ' incoming edges: ' + str(bb.incoming_edges) + ' outgoing edges: ' + str(bb.outgoing_edges))
+ bblist.append(f"basic block {bb} start: {bb.start:#x} end: {bb.end:#x} undetermined outgoing edges: {bb.has_undetermined_outgoing_edges} incoming edges: {bb.incoming_edges} outgoing edges: {bb.outgoing_edges}")
for anno in func.get_block_annotations(bb.start):
- bblist.append("basic block {} function annotation: ".format(str(bb)) + str(anno))
- bblist.append("basic block {} test get self: ".format(str(bb)) + str(func.get_basic_block_at(bb.start)))
+ bblist.append(f"basic block {bb} function annotation: {anno}")
+ bblist.append(f"basic block {bb} test get self: {func.get_basic_block_at(bb.start)}")
return fixOutput(bblist)
def test_function_low_il_basic_blocks(self):