Skip to content

Commit 908f938

Browse files
committed
tests/extmod/asyncio_iterator_event.py: Use format instead of f-string.
Some targets don't have f-strings enabled, so try not to use them in tests. Rather, use `str.format`, which is more portable. Signed-off-by: Damien George <[email protected]>
1 parent 499bedf commit 908f938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/extmod/asyncio_iterator_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def schedule_watchdog(end_ticks):
5050
async def test(ai):
5151
for x in range(3):
5252
await asyncio.sleep(0.1)
53-
ai.fetch_data(f"bar {x}")
53+
ai.fetch_data("bar {}".format(x))
5454

5555

5656
class AsyncIterable:

0 commit comments

Comments
 (0)