diff options
author | Damien George <damien@micropython.org> | 2025-06-23 13:08:36 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-07-12 22:37:56 +1000 |
commit | 908f938c44cc45bd725cf14d09895ab7472dd67a (patch) | |
tree | 1365a61f9d694abca3a3f4817a50174074c50bee /tests/extmod/asyncio_iterator_event.py | |
parent | 499bedf7aa07bb26dc19fb8b3ef5db5c8e578f52 (diff) |
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 <damien@micropython.org>
Diffstat (limited to 'tests/extmod/asyncio_iterator_event.py')
-rw-r--r-- | tests/extmod/asyncio_iterator_event.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/asyncio_iterator_event.py b/tests/extmod/asyncio_iterator_event.py index 6efa6b864..f61fefcf0 100644 --- a/tests/extmod/asyncio_iterator_event.py +++ b/tests/extmod/asyncio_iterator_event.py @@ -50,7 +50,7 @@ def schedule_watchdog(end_ticks): async def test(ai): for x in range(3): await asyncio.sleep(0.1) - ai.fetch_data(f"bar {x}") + ai.fetch_data("bar {}".format(x)) class AsyncIterable: |