uasyncio.core: Add test for callback args to call_soon().

pull/183/head
Paul Sokolovsky 2017-05-22 13:57:57 +03:00
rodzic 241e7b1a3b
commit c01004d71f
1 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,16 @@
try:
import uasyncio.core as asyncio
except:
import asyncio
def cb(a, b):
assert a == "test"
assert b == "test2"
loop.stop()
loop = asyncio.get_event_loop()
loop.call_soon(cb, "test", "test2")
loop.run_forever()
print("OK")