You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
micropython/streampair: Use RingIO and add async tests.
- Replace deprecated ringbuffer with RingIO name.
- Remove unused collections.deque import.
- Add test_select_poll_compatibility() to verify select.poll().
- Add test_streamreader_direct_usage() for asyncio.StreamReader.
The existing ioctl implementation correctly returns -1 for
unsupported operations, enabling select.poll() to work with pure
Python stream objects. Since asyncio.StreamReader is built on
select.poll(), StreamPair works seamlessly with async I/O.
These tests document that Python objects with proper ioctl()
implementation work with micropython polling and async infrastructure
without requiring C-level integration.
Signed-off-by: Andrew Leech <[email protected]>
Signed-off-by: Andrew Leech <[email protected]>
0 commit comments