Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Allow non-threadsafe projects to be compatible with --tests-per-worker=1 #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bukzor
Copy link

@bukzor bukzor commented Aug 10, 2020

I could instead add a more explicit --nothreading option, if you prefer, but this patch makes pytest-parallel a drop-in replacement for pytest-xdist (if you added -n as an alias for --workers), which is what we're using it as.

Even better would be to have the first "thread" of each process run in the main thread, and send anything marked with pytest.mark.threadunsafe to only main-thread workers. But that's a ton more work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant