Skip to content

Commit

Permalink
QtWinExtras: Skip test with conda, Python 3 and PyQt5
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Sep 1, 2021
1 parent 1615b26 commit fe84836
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions qtpy/tests/test_qtwinextras.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
from __future__ import absolute_import

import os
import sys

import pytest
from qtpy import PYQT5, PYSIDE2
from py3compat import PY3


@pytest.mark.skipif(sys.platform != "win32" or not (PYQT5 or PYSIDE2),
reason="Only available in Qt5 bindings and Windows platform")
@pytest.mark.skipif(
sys.platform != "win32" or not (PYQT5 or PYSIDE2) or
os.environ['USE_CONDA'] == 'True' and PY3 and PYQT5,
reason="Only available in Qt5 bindings and Windows platform")
def test_qtwinextras():
"""Test the qtpy.QtWinExtras namespace"""
from qtpy import QtWinExtras
Expand Down

0 comments on commit fe84836

Please sign in to comment.