Skip to content

Commit 255023f

Browse files
santigimenojuanarbol
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 b3629da commit 255023f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎tools/test.py‎

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

0 commit comments

Comments
(0)