[#73220] fix lint errors in driver.py

This commit is contained in:
Mateusz Gancarz 2025-02-27 14:31:14 +01:00
parent 795bb86227
commit 5bd9aabfcc
1 changed files with 6 additions and 9 deletions

View File

@ -2509,9 +2509,8 @@ class VlTest:
def compare_saif_instances(self, first: SAIFInstance, second: SAIFInstance):
if len(first.nets) != len(second.nets):
self.error(
f"Number of nets doesn't match in {first.scope_name}: {len(first.nets)} != {len(second.nets)}"
)
self.error(f"Number of nets doesn't match in {first.scope_name}: "
f"{len(first.nets)} != {len(second.nets)}")
for signal_name, saif_signal in first.nets.items():
if signal_name not in second.nets:
@ -2533,9 +2532,8 @@ class VlTest:
f"{signal_name}[{bit_index}]\n")
if len(first.child_instances) != len(second.child_instances):
self.error(
f"Number of child instances doesn't match in {first.scope_name}: {len(first.child_instances)} != {len(second.child_instances)}"
)
self.error(f"Number of child instances doesn't match in {first.scope_name}: "
f"{len(first.child_instances)} != {len(second.child_instances)}")
for instance_name, instance in first.child_instances.items():
if instance_name not in second.child_instances:
@ -2556,9 +2554,8 @@ class VlTest:
self.error(f"Timescale doesn't match: {first.timescale} != {second.timescale}")
if len(first.top_instances) != len(second.top_instances):
self.error(
f"Number of top instances doesn't match: {len(first.top_instances)} != {len(second.top_instances)}"
)
self.error("Number of top instances doesn't match: "
f"{len(first.top_instances)} != {len(second.top_instances)}")
for top_instance_name, top_instance in first.top_instances.items():
if top_instance_name not in second.top_instances: