Skip tests involving loadUi with pyside2 5.14

This commit is contained in:
Ogi 2020-02-24 23:00:42 -08:00
parent 428af4950d
commit 19ae94765f
2 changed files with 4 additions and 1 deletions

View File

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
from pyqtgraph import Qt
from . import utils
from collections import namedtuple
from pyqtgraph import Qt
import errno
import importlib
import itertools
@ -150,6 +150,7 @@ conditionalExamples = {
)
}
@pytest.mark.skipif(Qt.QT_LIB == "PySide2" and "Qt.QtVersion.startswith('5.14')", reason="new PySide2 doesn't have loadUi functionality")
@pytest.mark.parametrize(
"frontend, f",
[

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import pyqtgraph as pg
import gc, os
import pytest
@ -14,6 +15,7 @@ def test_isQObjectAlive():
@pytest.mark.skipif(pg.Qt.QT_LIB == 'PySide', reason='pysideuic does not appear to be '
'packaged with conda')
@pytest.mark.skipif(pg.Qt.QT_LIB == "PySide2" and "pg.Qt.QtVersion.startswith('5.14')", reason="new PySide2 doesn't have loadUi functionality")
def test_loadUiType():
path = os.path.dirname(__file__)
formClass, baseClass = pg.Qt.loadUiType(os.path.join(path, 'uictest.ui'))