-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
py.test not running any tests when using -n (xdist) #669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Original comment by BitBucket: vmalloc, GitHub: vmalloc: Managed to pin the problem on a specific use case: it happens when parameters are different between workers in pytest.mark.parametrize. For instance, the following simple test will reproduce it:
It would be helpful to at least get a clear error message explaining why things aren't running... |
Original comment by Floris Bruynooghe (BitBucket: flub, GitHub: flub): AFAIK when using xdist the tests collected on all hosts must have exactly the same test IDs. This means you can not have different parameters depending on the host. You might be able to work around this in the above example by explicitly giving parameter IDs (which are used to create the test IDs): |
When I run this with an up-to-date pytest and pytest-xdist, I get an error message instead:
So can this be closed, @garbas? |
Closing as duplicate of #920 |
Originally reported by: BitBucket: vmalloc, GitHub: vmalloc
When I run py.test without any arguments all my tests are running as expected:
However, when I pass
-n 4
, nothing gets actually run:The text was updated successfully, but these errors were encountered: