black formatting

This commit is contained in:
JanLJL
2023-02-15 16:53:26 +01:00
parent 4ca7c26d20
commit b20f5539bf
2 changed files with 9 additions and 3 deletions

View File

@@ -29,7 +29,9 @@ class EntryBuilder:
comment = " # " + comment
else:
comment = ""
description = "- name: {}{}\n operands: {}\n".format(instruction_name, comment, "[]" if len(operand_types) == 0 else "")
description = "- name: {}{}\n operands: {}\n".format(
instruction_name, comment, "[]" if len(operand_types) == 0 else ""
)
for ot in operand_types:
if ot == "imd":

View File

@@ -29,7 +29,9 @@ class TestCLI(unittest.TestCase):
def test_check_arguments(self):
parser = osaca.create_parser(parser=ErrorRaisingArgumentParser())
args = parser.parse_args(["--arch", "WRONG_ARCH", self._find_file("gs", "csx", "gcc")])
args = parser.parse_args(
["--arch", "WRONG_ARCH", self._find_file("gs", "csx", "gcc")]
)
with self.assertRaises(ValueError):
osaca.check_arguments(args, parser)
args = parser.parse_args(
@@ -234,7 +236,9 @@ class TestCLI(unittest.TestCase):
# Run tests with --lines option
parser = osaca.create_parser()
kernel_x86 = "triad_x86_iaca.s"
args_base = parser.parse_args(["--arch", "csx", self._find_test_file(kernel_x86)])
args_base = parser.parse_args(
["--arch", "csx", self._find_test_file(kernel_x86)]
)
output_base = StringIO()
osaca.run(args_base, output_file=output_base)
output_base = output_base.getvalue().split("\n")[8:]