afdko icon indicating copy to clipboard operation
afdko copied to clipboard

Tests cannot run in parallel with pytest-xdist

Open apteryks opened this issue 3 years ago • 1 comments

Hello,

Currently the test suite cannot be made to run in parallel, because the temporary directory is shared between tests and that cause race conditions (FileNotFound errors and the likes).

It seems like it could be fixed simply by using a true temporary directory that expands to something unique for each test, so they can run independently at the same time.

Thanks!

apteryks avatar Apr 08 '22 12:04 apteryks

Agreed, this would be a nice improvement for the test suite. If you'd like to give it a try, we will happily review a PR that implements it!

josh-hadley avatar Apr 08 '22 15:04 josh-hadley