Merge pull request #17283 from MrKevinWeiss/pr/fix/fstring/nightly

tests/*: Fix nightly failures due to f-string
This commit is contained in:
Kaspar Schleiser 2021-12-01 08:54:19 +01:00 committed by GitHub
commit d3666102db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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