summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/asyncio_as_uasyncio.py
Commit message (Collapse)AuthorAge
* tests/extmod/asyncio_as_uasyncio.py: Fix qstr order dependency.Jim Mussared2023-10-30
| | | | | | | | | | | | | This test depends on the order in which qstrs are stored in ROM, which affects the order in which `dir()` will probe the object to see what it supports. Because of the lazy-loading in asyncio/__init__.py, if it tries to do e.g. `wait_for_ms` before `funcs` then it will import funcs, making `funcs` later succeed. But in the other way around, `funcs` will initially not be found. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* extmod/asyncio/uasyncio.py: Add backwards-compatible uasyncio alias.Jim Mussared2023-06-19
This allows existing code that does `import uasyncio` or `import uasyncio as asyncio` to continue working. It uses the same lazy-loading as asyncio to prevent loading of unused features. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>