From ac55d9ff0b588b91202ccad72ee71e508e33ad08 Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 19 Jul 2025 22:21:10 -0600 Subject: Reformat repository to allow for new unit tests --- t/eager_and_scheduled.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 t/eager_and_scheduled.py (limited to 't/eager_and_scheduled.py') diff --git a/t/eager_and_scheduled.py b/t/eager_and_scheduled.py new file mode 100644 index 0000000..178a9f4 --- /dev/null +++ b/t/eager_and_scheduled.py @@ -0,0 +1,19 @@ +import asyncio + + +async def foo(): + await asyncio.sleep(1.0) + await baz() + await asyncio.sleep(0.5) + + +async def bar(): + await asyncio.create_subprocess_shell('sleep 1.0') + + +async def baz(): + await asyncio.sleep(1.0) + + +asyncio.run(foo()) +asyncio.run(bar()) -- cgit v1.2.3