diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-08-27 12:51:26 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:38 -0400 |
| commit | e7400c394eca465d2a54a70c16bb175e4521de91 (patch) | |
| tree | a8bcfbafdbcc0bbb401b98a557fa564827a65c55 /suite | |
| parent | 5c14a62561b94f453dd41ea92634ac4151a4e3a6 (diff) | |
Use more f-strings
Diffstat (limited to 'suite')
| -rw-r--r-- | suite/testcommon.py | 6 |
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): |
