-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
KeyError: 'testpaths' exception raised when using --override-ini command line option #2105
Comments
I reproduced this on Fedora 24 in clean virtualenv with packages listed below as well:
|
Oh, that's because the code does (source): (key, user_ini_value) = ini_config.split("=", 1) @mbukatov, everything should work when you run: $ pytest --override-ini=xfail_strict=True test_foo.py Not sure if pytest supports |
Not sure either, I think
I agree, I think it is sensible to check if |
@lwm thanks for looking into this |
Yes, |
Summary of the issue
When I use
--override-ini
feature while specifying particular test to run,py.test
crashes withKeyError: 'testpaths'
exception.Description of a reproducer
Create minimal test case in
~/tmp
directory so that:Execution of this test case works as expected:
And there are no problems with invocations listed below either:
py.test test_foo.py
py.test --override-ini xfail_strict=True
But when I both reconfigure any configuration option via
--override-ini
and specify a test case at the same time, py.test crashes:Enviroment
I'm using Python 3.5.1 (from
rh-python35
collection on RHEL 7):And Pytest 3.0.4:
The rest of python environment:
The text was updated successfully, but these errors were encountered: