We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fake_process appears to be incompatible with code that uses asyncio.subprocess.DEVNULL.
asyncio.subprocess.DEVNULL
Example test:
def test_devnull(fake_process): async def impl(): process = await asyncio.create_subprocess_exec( "cat", stdin=oasyncio.subprocess.DEVNULL, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, ) fake_process.register_subprocess("cat") asyncio.get_event_loop().run_until_complete(impl())
Output:
E AttributeError: module 'pytest_subprocess.asyncio_subprocess' has no attribute 'DEVNULL'
From looking at asyncio_subprocess.py, my guess would be that DEVNULL needs to be imported here (and probably STDOUT too) .
asyncio_subprocess.py
DEVNULL
STDOUT
The text was updated successfully, but these errors were encountered:
asyncio.subprocess
Thanks for the report, this one was easy so I've fixed it immediately.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
fake_process appears to be incompatible with code that uses
asyncio.subprocess.DEVNULL
.Example test:
Output:
From looking at
asyncio_subprocess.py
, my guess would be thatDEVNULL
needs to be imported here (and probablySTDOUT
too) .The text was updated successfully, but these errors were encountered: