Skip to content

Commit

Permalink
create conftest.py to be able to pick Qt backend for the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed May 31, 2020
1 parent 3fbde87 commit 94820fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import os
import sys

# the backend to use, either pyside or pyqt
os.environ['QT_API'] = 'pyside'

sys.excepthook = print
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ addopts =
--ignore tests/iterate_through_examples.py
--ignore junk
--ignore msl/examples
-p conftest

# https://docs.pytest.org/en/latest/doctest.html#using-doctest-options
doctest_optionflags = NORMALIZE_WHITESPACE

0 comments on commit 94820fe

Please sign in to comment.