[TIP] spawning a subprocess from within a pytest test
Tony Cappellini
cappy2112 at gmail.com
Mon Oct 1 16:49:01 PDT 2018
I've spent a lot of time trying to figure this out, so I thought I'd ask
those who have more experience with Pytest.
I'm running Python 2.7.14 on Windows 7 Pro (64-bit), pytest 3.5.0
Is there any reason a test running under pytest shouldn't spawn a
subprocess, or
take special care when spawning it?
I'm not able to get a subprocess to launch using subprocess.Popen() inside
of a pytest test, but I can run spawn the subrpocess outside of pytest.
I don't know if I can attach my code to this post.
I'll provide more details and the code, after the reply.
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20181001/5dc1bb58/attachment.html>
More information about the testing-in-python
mailing list