Open
Conversation
By using the `--dist=loadfile` option, we can force `xdist` to keep tests together on a thread. This test demonstrates this.
Owner
|
Hm, I'm (finally) getting around to take a look at this. I have it failing for me locally, here's the captured stderr call |
|
@ftobia Maybe you haven't update your local env? testenv now has an additional dependency |
|
This is a critical test to have. xdist is one of the most popular plugins that can heavily conflict with ordering and we need to assure no regression happens or to fail-fast when we detect incompatible use-cases. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create a test to check that a version of #36 can be achieved as-is.
By telling xdist to keep tests from one file together on one thread using
--dist=loadfile, we can make sure that dependent tests are executed on the same thread, as long as they're in the same file.