-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Runtime error when running pytest with PyQt5 application #1701
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
This should probably have gone to the According to that output, you do have PyQt4 installed:
Do you set We'll soon release pytest-qt 2.0 which will prefer PyQt5 by default and also lets you configure the Qt API in your |
Hi The-Compiler, thanks for answering my question here. I tried setting my environment variable and removing qt4, unfortunately I still receive qt4 related errors. There's no rush to write these tests, so I will happily wait for pytest-qt 2.0. Thanks again, Mandeep. |
Weird - do you still get the exact same error? |
btw, can we close this on the pytest tracker, its a pytest-qt issue and the next pytest-qt will fix it |
I'm closing it - I don't see any issue so far though, pytest-qt works fine with PyQt4 or PyQt5 (with both installed) here when |
Turns out it was an issue with the environment. Thanks all. |
Having a problem running pytest with a PyQt5 application. When running this command: py.test tests.py, I receive an error saying:
I'm not sure if this is an error with pytest or pytest-qt. The code in tests.py is as follows:
Here is a conda list of the conda env. I do not have PyQt4 installed nor am I importing it anywhere:
(edited by @The-Compiler to add code block formatting around outputs/code)
The text was updated successfully, but these errors were encountered: