Skip to content

Commit 1eb0b45

Browse files
committed
Less overprotection
1 parent 5862756 commit 1eb0b45

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/utils/lit/lit/display.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ def print_result(self, test):
119119
test_name = test.getFullName()
120120

121121
extra_info = ""
122-
if (
123-
test.result.max_allowed_attempts is not None
124-
and test.result.max_allowed_attempts > 1
125-
) and test.result.attempts > 1:
122+
if test.result.attempts > 1:
126123
extra_info = f", {test.result.attempts} of {test.result.max_allowed_attempts} attempts"
127124

128125
print(

0 commit comments

Comments
 (0)