pytest-socket
pytest-socket copied to clipboard
subprocess support
When running a subprocess() command in the context of a test case, the settings are not carried over into the subprocess, as it has its own execution context.
While there's low likelihood that this library could or should prevent a non-Python command like subprocess.check_call(["curl", "https://example.com"]), if the subprocess is another Python program, we should attempt to apply the same settings to that Python execution.
See how pytest-cov does this: https://pytest-cov.readthedocs.io/en/stable/subprocess-support.html
This issue is stale because it has been open for 90 days with no activity.
go away stale bot
(I will pick this back up once I have time, probably sometime after the pip 25.1 release)
This issue is stale because it has been open for 90 days with no activity.
boop (I haven't forgot about this, just got really busy and then distracted)
This issue is stale because it has been open for 90 days with no activity.
This issue was closed because it has been inactive for 30 days since being marked as stale.