-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error when discovering tests with pytest in scikit-learn repo #7487
Comments
Hi @ogrisel 👋 Thank you for reporting this! We have issues with pytest 5.1 (see #6990), but I could reproduce your issue using pytest 5.0.1 (although, I'm on macOS so there were a few more steps involved when installing scikit-learn). I can also confirm that running |
I have the same problem with a personal repository. My config is : Python 3.7.5, pytest-5.2.2, py-1.8.0, pluggy-0.13.0 on windows 10 64bits with conda. pytest works fine in a console. |
Upon further inspection, the value of the item.location == ('sklearn/_config.py', None, '[doctest] sklearn._config.config_context') Maybe the lineno cannot be found because it is a doctest on a function that has the I will submit a PR with a quick fix. |
@karrtikr was this verified and so this can be closed? |
Yeah we can close this |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): language serverHere is the error I get when I discover the tests from within VS code. I don't have any problem running pytest from the command line in the same source folder / conda env.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: