Skip to content
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

doc : enhance troubleshooting.rst #397

Merged
merged 2 commits into from
Nov 25, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,19 @@ pytest-xvfb
~~~~~~~~~~~

Instead of running Xvfb manually it is possible to use ``pytest-xvfb`` plugin.

Using with other Qt-related packages
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Using Python's Qt modules (``PySide`` or ``PyQt5``) with other packages which
use Qt (e.g. ``cv2``) can result conflict. This is because the latter build
their own Qt and modify the environment variable. This may not raise error
in your local app, but running the tests on CI servers can fail.

In this case, try use the package without Qt dependency. For example, if your
code does not rely on ``cv2``'s Qt feature you can use
``opencv-python-headless`` instead of full ``opencv-python``.

More details can be found in `issue #396`_.

.. _issue #396: https://github.com/pytest-dev/pytest-qt/issues/396