mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2025-12-16 09:00:05 +01:00
black formatting
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -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:]
|
||||
|
||||
Reference in New Issue
Block a user