Merge pull request #17283 from MrKevinWeiss/pr/fix/fstring/nightly
tests/*: Fix nightly failures due to f-string
This commit is contained in:
commit
d3666102db
@ -9,7 +9,7 @@ def testfunc(child):
|
||||
children = int(child.match.group(1))
|
||||
iterations = int(child.match.group(2))
|
||||
for i in range(children):
|
||||
child.expect(f'Start {i + 1}')
|
||||
child.expect('Start {}'.format(i + 1))
|
||||
for _ in range(iterations):
|
||||
sleeps = []
|
||||
for _ in range(children):
|
||||
|
||||
@ -73,7 +73,7 @@ def testfunc(child):
|
||||
if (count_first_thread >= MIN_PRINTS) and (count_second_thread >= MIN_PRINTS):
|
||||
break
|
||||
|
||||
msg = f"Either t1 or t3 printed less than {MIN_PRINTS} times within 100 messages"
|
||||
msg = "Either t1 or t3 printed less than {} times within 100 messages".format(MIN_PRINTS)
|
||||
assert (count_first_thread >= MIN_PRINTS) and (count_second_thread >= MIN_PRINTS), msg
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user