-
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
pytest test discovery failed with pytest-pep8 installed #7287
Comments
Hi @zztalker 👋 Thank you for reporting this issue and providing sample code 👍
Notes
|
@kimadeline My apologies, I've forgotten to push it (requirements.txt) to the repo. I suppose all worked well till:
|
I believe, that problem in section, and will try to look into code for more details:
|
I also ran into this same problem / error output when using --codestyle in the pytest options |
pytest-cram fails in this way as well. |
✅ Validated in 2019.12.48501-dev, test discovery doesn't fail with "python.testing.pytestArgs": [
"--pep8",
"."
], |
Environment data
Version: 1.38.0
Commit: 3db7e09f3b61f915d03bbfa58e258d6eee843f35
Date: 2019-09-03T21:51:09.716Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 4.15.0-36-generic
Extension Name: Python
Id: ms-python.python
Version: 2019.9.34911
Publisher: Microsoft
Python version: 3.5/3.6/3.7
Expected behavior
Tests discovered
Actual behavior
Tests discovering failed.
The workaround is to remove
--pep8
keyword from pytestArgs property.Steps to reproduce:
git clone https://github.com/zztalker/just_for_test
)pip install -r requirements.txt
), we need only pytest-pep8code .
)Logs
Output for
Python Test Log
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: