-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
qtbot with PySide2 fails in github actions #293
Comments
That stacktrace just means that Qt aborted when creating a QApplication. There's nothing pytest-qt can do about that, it's something which would as well happen if you did run something like: import sys
from PySide2.QtWidgets import QApplication
app = QApplication(sys.argv) via Python. Do you have Closing this for now as I don't think there's anything pytest-qt can do here - but feel free to follow up if needed! |
libxkbcommon-x11-0 was the thing. thanks. |
@jgirardet good news then.
Sure, that would be appreciated, thanks. 👍 |
I added an example too, since I was looking a working one a few days ago. Fixes pytest-dev#293
install xvfb and libxkbcommon-x11-0 per pytest-dev/pytest-qt#293
* first code commit * added requirements.txt, tests modified import statement using try/except to not complain in vscode, from command line, or from pytest * updates based on linter and pytest complaints * adding setup.py * importing qtpseudo_controller in __init__.py * revert pytest to not be python -m pytest * added __init__.py to tests * instantiating application and then closing all windows * remove QApplication() usage from test, it generated a crash * Update python-app.yml install xvfb and libxkbcommon-x11-0 per pytest-dev/pytest-qt#293 * added use of herbstluftwm per pytest-dev/pytest-qt#206 * Update python-app.yml fix herbstluftwm usage in combination with pytest * Update python-app.yml trying xvfb-action * Update python-app.yml * Update python-app.yml * Update python-app.yml using xvfb-run * Update python-app.yml * Update python-app.yml * Update python-app.yml * Update python-app.yml trying pytest-xvfb * Update python-app.yml installing dependencies * Update python-app.yml switched to apt-get vs apt to see if that will silence the warning about unstable api
hi,
Hi the following bug in github actions CI not locally:
the only test is (no import in file):
conftest file empty.
Not sure if it could be related to #202 or #206
thanks for help
The text was updated successfully, but these errors were encountered: