Open blcdb opened 3 months ago
Thank you for reporting. I have never used selectors, so I didn't incorporate them into a plugin. Feel free to submit a PR to fix this issue. Otherwise, I'll try to work on it in the future, but I can't tell you when it will be.
Hello,
In order to have a the logs of a time lasting command printed at the user while the command is still running i did this code :
It's a solution that avoid to have thread to be able to read both stdout and stderr while the command is still running.
I tried to test my code whith pytest-subprocess with a test similar to this :
but the test failed because selectors.register need an object like an io.BufferedReader (that is returned by the subprocess.Popen() upward.) However fp.register is unable to take an io.BufferedReader for stdout and stderr.
Do you think it is possible to allow this stdout and stderr mocking ?