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

Question: Is it possible to create new subprocess for every test?

Open kittipatv opened this issue 7 years ago • 7 comments

Hi, I use -d --tx 2*popen//python=python3.7 to try to run my tests in subprocesses. However, it looks like the subprocess is reused between tests. I want each test to run in a fresh subprocess because I suspect that there are some memory leaking between tests. I tried using --forked but it had problem finding dependencies. Is there some flag I could pass to restart subprocess after each test?

Thank you, Kittipat

kittipatv avatar Nov 02 '18 16:11 kittipatv