I'm running PyCharm Professional 2023.3.4 on an Ubuntu 22.04 machine.
My PyTests run OK from the command line, and from the terminal within PyCharm. But running them directly from PyCharm itself gives the message "Test framework quit unexpectedly", with the error output shown below (in two screenshots).
None of the lines mentioned in the error output reference any of my code.
Here is how the tests are configured:
Can anyone tell me why Pytest is exiting when run from Pycharm, and how to fix the problem?
Thank you in advance for any help.
I had the exact same issue today and solved it by running pip install pytest-asyncio
. That installed the current latest version 0.25.3 and after doing that problem was fixed and I could run tests from PyCharm.