From 9b00bf23fee5b779562d72fd0689421b13b3bf24 Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Sun, 14 Jul 2019 11:47:59 +0200 Subject: [PATCH] Testing: Skip test_qt3danimation in Python 2 and PySide2 This is failing due to a bug in Shiboken --- qtpy/tests/test_qt3danimation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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")