-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
AssertionError - ERROR: InvocationError for command '**\.tox\py35\Scripts\python' '**\PyCharm Community Edition 2019.2\helpers\pycharm\pytestrunner.py' -p pytest_teamcity tests (exited with code 1) #5800
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
Hi @sanghvibk, Can you manage to post the complete traceback? That |
Hi @nicoddemus , Many thanks for your response. Please find full traceback as requested. Also, please let me know if I could provide any other assistance.
|
Can you change it to output the values?
|
args = <class 'list'>: ['-p', 'pytest_teamcity', 'tests', '-s'] If you are expecting full Traceback with variable values, then please guide me how to achieve that. I am quite newbie with PyCharm / Python / PyTest. |
After changing line 920 in init.py to
|
Hi @blueyed and @nicoddemus, Thank you for support so far. Kindly let me know if you would like to have any more information in order to establish cause of this issue. Regards. |
at first glance this looks like the pycharm helper is using pytest internals, can you upload that main file of pycharm ? |
Thanks. Please find attached pytestrunner.zip |
Hi @sanghvibk, I've installed 2019.2 (I was using 2018.3), and I now get several strange errors when running the test suite:
Note that my PyCharm installation is using I have no idea what might be the problem, and it seems there are already other users facing problems with PyCharm 2019 (PY-37841, PY-36474). You might consider voting on the existing issues and also post yours, in which case please post the link back here so we can vote on it. |
I've also commented on adding more information: https://youtrack.jetbrains.com/issue/PY-37841 Everyone reading this, please vote there if you can (all you need is a google account). |
Done - note a GitHub account (or Yahoo/Bitbucket/Jetbrains) works as well! |
Thanks! They move fast, it seems it will be fixed in 2019.2.3 already! ❤️ Closing this now that we have no action on our side. |
The Jetbrains issue is referring to a different stacktrace, so not sure if that really resolves this one as it didn't work when I tried the patch in the Jetbrains issue. For this error:
I was able to get it to work by reverting to pytest 5.0.1, so it seems like it's an issue in pytest? 5.1.0 to 5.2.0 didn't work. |
@maxzheng |
a detailed description of the bug or suggestion
While running tox command from PyCharm (version 2019.2) and PyTest (version 5.1.1), I am getting an error "AssertionError - ERROR: InvocationError for command '.tox\py35\Scripts\python' '\PyCharm Community Edition 2019.2\helpers\pycharm\pytestrunner.py' -p pytest_teamcity tests (exited with code 1)". I was able to resolve this issue by forcing tox to use PyTest version 5.0.1 OR 4.6.2. I managed to find source of exception in file **.tox\py35\lib\site-packages_pytest\config_init_.py - line 920 - "assert self.invocation_params.args == args"
output of
pip list
from the virtual environment you are usingpytest and operating system versions
pytest - 5.1.1 / OS version : latest version of Windows 10 Home as well as latest version of Raspbian
example of tox.ini having issue with ...
tox.ini file is like ...
tox.ini file is like ...
The text was updated successfully, but these errors were encountered: