Skip to content

Commit af61150

Browse files
committed
Fix lint: simplify artifact_name ternary to single line
1 parent ff2dbda commit af61150

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

backends/test/suite/runner.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ def build_result(
207207
artifact_name = None
208208
if artifact_dir:
209209
base = test_base_name.removeprefix("test_")
210-
artifact_name = (
211-
f"{base}_{subtest_index}" if subtest_index > 0 else base
212-
)
210+
artifact_name = f"{base}_{subtest_index}" if subtest_index > 0 else base
213211

214212
# TODO We should consider refactoring the tester slightly to return more signal on
215213
# the cause of a failure in run_method_and_compare_outputs. We can look for

0 commit comments

Comments
 (0)