Skip to content

Commit 494b1a3

Browse files
santigimenotargos
authored andcommitted
tools: don't use f-strings in test.py
PR #43954 introduced the use of f-strings to `test.py` making the script only work with python versions >= 3.6. Remove that use to make it compatible again with older python versions. PR-URL: #44407 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 3629377 commit 494b1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def RunSingle(self, parallel, thread_id):
227227
if self.measure_flakiness:
228228
outputs = [case.Run() for _ in range(self.measure_flakiness)]
229229
# +1s are there because the test already failed once at this point.
230-
print(f" failed {len([i for i in outputs if i.UnexpectedOutput()]) + 1} out of {self.measure_flakiness + 1}")
230+
print(" failed %d out of %d" % (len([i for i in outputs if i.UnexpectedOutput()]) + 1, self.measure_flakiness + 1))
231231
else:
232232
self.succeeded += 1
233233
self.remaining -= 1

0 commit comments

Comments
 (0)