pytest-socket icon indicating copy to clipboard operation
pytest-socket copied to clipboard

subprocess support

Open miketheman opened this issue 10 months ago • 2 comments

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

miketheman avatar Jan 03 '25 21:01 miketheman

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Apr 04 '25 02:04 github-actions[bot]

go away stale bot

(I will pick this back up once I have time, probably sometime after the pip 25.1 release)

ichard26 avatar Apr 13 '25 15:04 ichard26

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Jul 13 '25 02:07 github-actions[bot]

boop (I haven't forgot about this, just got really busy and then distracted)

ichard26 avatar Jul 13 '25 02:07 ichard26

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Oct 13 '25 02:10 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Nov 12 '25 02:11 github-actions[bot]