diff --git a/qtpy/tests/test_qt3danimation.py b/qtpy/tests/test_qt3danimation.py index 650be19e..5c4206fc 100644 --- a/qtpy/tests/test_qt3danimation.py +++ b/qtpy/tests/test_qt3danimation.py @@ -2,8 +2,10 @@ import pytest from qtpy import PYQT5, PYSIDE2 +from qtpy.py3compat import PY2 -@pytest.mark.skipif(not (PYQT5 or PYSIDE2), reason="Only available in Qt5 bindings") +@pytest.mark.skipif(not (PYQT5 or PYSIDE2) or (PY2 and PYSIDE2), + reason="Only available in Qt5 bindings and fails on Python 2 and PySide2") def test_qt3danimation(): """Test the qtpy.Qt3DAnimation namespace""" Qt3DAnimation = pytest.importorskip("qtpy.Qt3DAnimation")