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
Per Pyserial URL Handlers documentation it's useful to have a loop:// handler. In unit testing I've used this extensively for simple testing. This avoids having to setup a TCP socket server as done in #1 .
Would it be possible to better support this? My hunch is this has something to do with how pyserial handles the loop:// functionality and it may not work well with asyncio.
Tests
Running the base pyserial-asyncio boilerplate code with loop:// shown below:
Per Pyserial URL Handlers documentation it's useful to have a
loop://
handler. In unit testing I've used this extensively for simple testing. This avoids having to setup a TCP socket server as done in #1 .Would it be possible to better support this? My hunch is this has something to do with how
pyserial
handles theloop://
functionality and it may not work well withasyncio
.Tests
Running the base
pyserial-asyncio
boilerplate code withloop://
shown below:Results in the following output which is missing the "Hello, world" text that is expected (using
pytest
):Yet the same code using a loopback hardware serial device on
/dev/ttyUSB0
results in:The text was updated successfully, but these errors were encountered: