-
Notifications
You must be signed in to change notification settings - Fork 234
Poor interaction between -n#
and -c X.cfg
#6
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
I'm not sure I understand, can you perhaps create an example project |
To replicate the error, add some out-of-tree setup.cfg file...
... to some path The invocations to replicate from the virtualenv root are then: The first command should fail as expected because it's using the (I apologize for the double negative example; was in a hurry) |
should be fixed in the pytest feature branch |
@soltanmm could you please verify if the |
@RonnyPfannschmidt, we're observing the same behavior from issue #5 with pytest==2.9.1 and pytest-xdist==1.14: |
Was this resolved by #232? |
nope |
Okay, I asked because #5 (comment) suggests that this is a duplicate issue. Thanks. |
@davehunt this one is due to broken config handling in pytest - due to completely broken initialization of the pytest config, the initialization in xdist worker processes is inconsistent and different from the controlling process |
Decided to keep the old way still working for now. Fix pytest-dev#6 Fix pytest-dev#445
Specifying e.g.
-n8
appears to cause py.test options in config files e.g.to be ignored when they're specified by invocations of the form
py.test -c /something/elsewhere/setup.cfg -n8
. This doesn't appear to be a problem when invoking py.test directly in asetup.py
shim s.t. thesetup.cfg
is automagically found by py.test.I've only stared at this for a little while, however, and may have missed a few things. Pointers?
cc @nathanielmanistaatgoogle
The text was updated successfully, but these errors were encountered: