Skip to content

Commit

Permalink
Tests: Import qtpy instead of setting PYTEST_QT_API
Browse files Browse the repository at this point in the history
  • Loading branch information
jitseniesen committed Jul 27, 2016
1 parent 8b79807 commit ddca816
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,5 @@ script:
- ./continuous_integration/travis/build_test.sh
- ./continuous_integration/travis/run_test.sh
- ./continuous_integration/travis/modules_test.sh
- if [ "${USE_QT_API}" = "PyQt4" ]; then export PYTEST_QT_API=pyqt4v2; fi
- python runtests.py
- coveralls
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ test_script:
- "%CMD_IN_ENV% %APPVEYOR_BUILD_FOLDER%\\continuous_integration\\appveyor\\build_test.bat"
- "%CMD_IN_ENV% %APPVEYOR_BUILD_FOLDER%\\continuous_integration\\appveyor\\run_test.bat"
- "%CMD_IN_ENV% %APPVEYOR_BUILD_FOLDER%\\continuous_integration\\appveyor\\modules_test.bat"
- if %USE_QT_API%==PyQt4 set PYTEST_QT_API=pyqt4v2
- cd %APPVEYOR_BUILD_FOLDER% & python runtests.py
1 change: 1 addition & 0 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import sys

# Third party imports
import qtpy # to ensure that Qt4 uses API v2
import pytest


Expand Down

0 comments on commit ddca816

Please sign in to comment.