Skip to content

Commit c01004d

Browse files
committed
uasyncio.core: Add test for callback args to call_soon().
1 parent 241e7b1 commit c01004d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

uasyncio.core/test_cb_args.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
try:
2+
import uasyncio.core as asyncio
3+
except:
4+
import asyncio
5+
6+
7+
def cb(a, b):
8+
assert a == "test"
9+
assert b == "test2"
10+
loop.stop()
11+
12+
13+
loop = asyncio.get_event_loop()
14+
loop.call_soon(cb, "test", "test2")
15+
loop.run_forever()
16+
print("OK")

0 commit comments

Comments
 (0)