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
An TypeError is raised at fake_popen.py:271 when calling with a file passed to argument stderr if no stderr was given during registration
> buffer.write(data_type(data))
E TypeError: encoding without a string argument
pyvenv\Lib\site-packages\pytest_subprocess\fake_popen.py:271: TypeError
Thanks for reporting an issue. I think I've never consider the stdout/stderr to be files, hence these cases were not tested and are buggy. I'll try to find some time to look into that, but I can't say exactly when it will happen. Feel free to submit a PR if you need it sooner.
Description
An
TypeError
is raised atfake_popen.py
:271 when calling with a file passed to argumentstderr
if nostderr
was given during registrationExample
Below is an example demonstrating the error.
This raises the type error. I can correct this:
The text was updated successfully, but these errors were encountered: