diff options
author | Damien George <damien@micropython.org> | 2024-01-23 11:11:25 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-01-24 11:20:06 +1100 |
commit | 6bb446b7ff62af6d3b6b10f2da0f6d107f97e00e (patch) | |
tree | defebe4bddb58d75a044d219feefd8402cb7545f /tests/extmod/asyncio_fair.py | |
parent | 8eb658f654de345c935886b47e2e31b1dafeb862 (diff) |
tests/extmod: Remove asyncio .exp files that match CPython output.
These were added back in commit c4935f30490d0446e16a51dbf7a6397b771cf804
because the tests required CPython 3.8, which was quite new at the time.
But CPython 3.8 was released over 4 years ago (October 2019) and the CI
test runners, and developers, have this (or a more recent) CPython version.
Removing the .exp files also helps keep MicroPython semantics the same as
CPython.
The asyncio_fair.py test it adjusted slightly to have more deterministic
timing and output.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/extmod/asyncio_fair.py')
-rw-r--r-- | tests/extmod/asyncio_fair.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/extmod/asyncio_fair.py b/tests/extmod/asyncio_fair.py index 43076fef1..3e3ac0473 100644 --- a/tests/extmod/asyncio_fair.py +++ b/tests/extmod/asyncio_fair.py @@ -20,7 +20,7 @@ async def main(): t2 = asyncio.create_task(task(2, 0.1)) t3 = asyncio.create_task(task(3, 0.18)) t4 = asyncio.create_task(task(4, -100)) - await asyncio.sleep(0.5) + await asyncio.sleep(0.45) # t2 prints 5 times, t3 prints 3 times t1.cancel() t2.cancel() t3.cancel() |