[Python] When running all tests via pytest command line with xdist -n 4 option with tracing...

Discussão em 'Python' iniciado por Stack, Abril 15, 2025.

  1. Stack

    Stack Membro Participativo

    I run all my test on Windows via this command in the root of my tests folder:

    pytest --tracing retain-on-failure -v -n 4 --dist loadfile -m "my_marks"


    Everything has always been fine. I recently added a lot more tests to the run, and I started getting a weird error about 'OSError: [Errno 28] No space left on device' and there appears to be plenty of space (upon inspection after the run). I wondered if the trace files are cleaned up as soon as the test passes, or is it done only after the complete run...

    So, what I mean is, if I have 500 tests running and they all are passing, will each trace file get deleted as soon as the test has completed, or will there be 500 trace files accumulated that only get deleted once the entire run is complete?

    Continue reading...

Compartilhe esta Página