Skip openGL tests on some macOS configs

This commit is contained in:
Ogi Moore 2020-12-22 00:39:29 -08:00
parent 2689cdb5f6
commit 6eace48663

View File

@ -10,6 +10,7 @@ import importlib
import itertools import itertools
import pytest import pytest
import os, sys import os, sys
import platform
import subprocess import subprocess
import time import time
if __name__ == "__main__" and (__package__ is None or __package__==''): if __name__ == "__main__" and (__package__ is None or __package__==''):
@ -69,75 +70,83 @@ conditionalExamples = {
) )
), ),
'GLVolumeItem.py': exceptionCondition( 'GLVolumeItem.py': exceptionCondition(
not(sys.platform == "darwin" and not(platform.system() == "Darwin" and
sys.version_info[0] == 2 and tuple(map(int, platform.mac_ver()[0].split("."))) >= (10, 16) and
(frontends[Qt.PYQT4] or frontends[Qt.PYSIDE])), (sys.version_info <= (3, 8, 7) or
(sys.version_info >= (3, 9) and sys.version_info < (3, 9, 1)))),
reason=( reason=(
"glClear does not work on macOS + Python2.7 + Qt4: ", "pyopenGL cannot find openGL libray on big sur: "
"https://github.com/pyqtgraph/pyqtgraph/issues/939" "https://github.com/python/cpython/pull/21241"
) )
), ),
'GLIsosurface.py': exceptionCondition( 'GLIsosurface.py': exceptionCondition(
not(sys.platform == "darwin" and not(platform.system() == "Darwin" and
sys.version_info[0] == 2 and tuple(map(int, platform.mac_ver()[0].split("."))) >= (10, 16) and
(frontends[Qt.PYQT4] or frontends[Qt.PYSIDE])), (sys.version_info <= (3, 8, 7) or
(sys.version_info >= (3, 9) and sys.version_info < (3, 9, 1)))),
reason=( reason=(
"glClear does not work on macOS + Python2.7 + Qt4: ", "pyopenGL cannot find openGL libray on big sur: "
"https://github.com/pyqtgraph/pyqtgraph/issues/939" "https://github.com/python/cpython/pull/21241"
) )
), ),
'GLSurfacePlot.py': exceptionCondition( 'GLSurfacePlot.py': exceptionCondition(
not(sys.platform == "darwin" and not(platform.system() == "Darwin" and
sys.version_info[0] == 2 and tuple(map(int, platform.mac_ver()[0].split("."))) >= (10, 16) and
(frontends[Qt.PYQT4] or frontends[Qt.PYSIDE])), (sys.version_info <= (3, 8, 7) or
(sys.version_info >= (3, 9) and sys.version_info < (3, 9, 1)))),
reason=( reason=(
"glClear does not work on macOS + Python2.7 + Qt4: ", "pyopenGL cannot find openGL libray on big sur: "
"https://github.com/pyqtgraph/pyqtgraph/issues/939" "https://github.com/python/cpython/pull/21241"
) )
), ),
'GLScatterPlotItem.py': exceptionCondition( 'GLScatterPlotItem.py': exceptionCondition(
not(sys.platform == "darwin" and not(platform.system() == "Darwin" and
sys.version_info[0] == 2 and tuple(map(int, platform.mac_ver()[0].split("."))) >= (10, 16) and
(frontends[Qt.PYQT4] or frontends[Qt.PYSIDE])), (sys.version_info <= (3, 8, 7) or
(sys.version_info >= (3, 9) and sys.version_info < (3, 9, 1)))),
reason=( reason=(
"glClear does not work on macOS + Python2.7 + Qt4: ", "pyopenGL cannot find openGL libray on big sur: "
"https://github.com/pyqtgraph/pyqtgraph/issues/939" "https://github.com/python/cpython/pull/21241"
) )
), ),
'GLshaders.py': exceptionCondition( 'GLshaders.py': exceptionCondition(
not(sys.platform == "darwin" and not(platform.system() == "Darwin" and
sys.version_info[0] == 2 and tuple(map(int, platform.mac_ver()[0].split("."))) >= (10, 16) and
(frontends[Qt.PYQT4] or frontends[Qt.PYSIDE])), (sys.version_info <= (3, 8, 7) or
(sys.version_info >= (3, 9) and sys.version_info < (3, 9, 1)))),
reason=( reason=(
"glClear does not work on macOS + Python2.7 + Qt4: ", "pyopenGL cannot find openGL libray on big sur: "
"https://github.com/pyqtgraph/pyqtgraph/issues/939" "https://github.com/python/cpython/pull/21241"
) )
), ),
'GLLinePlotItem.py': exceptionCondition( 'GLLinePlotItem.py': exceptionCondition(
not(sys.platform == "darwin" and not(platform.system() == "Darwin" and
sys.version_info[0] == 2 and tuple(map(int, platform.mac_ver()[0].split("."))) >= (10, 16) and
(frontends[Qt.PYQT4] or frontends[Qt.PYSIDE])), (sys.version_info <= (3, 8, 7) or
(sys.version_info >= (3, 9) and sys.version_info < (3, 9, 1)))),
reason=( reason=(
"glClear does not work on macOS + Python2.7 + Qt4: ", "pyopenGL cannot find openGL libray on big sur: "
"https://github.com/pyqtgraph/pyqtgraph/issues/939" "https://github.com/python/cpython/pull/21241"
) )
), ),
'GLMeshItem.py': exceptionCondition( 'GLMeshItem.py': exceptionCondition(
not(sys.platform == "darwin" and not(platform.system() == "Darwin" and
sys.version_info[0] == 2 and tuple(map(int, platform.mac_ver()[0].split("."))) >= (10, 16) and
(frontends[Qt.PYQT4] or frontends[Qt.PYSIDE])), (sys.version_info <= (3, 8, 7) or
(sys.version_info >= (3, 9) and sys.version_info < (3, 9, 1)))),
reason=( reason=(
"glClear does not work on macOS + Python2.7 + Qt4: ", "pyopenGL cannot find openGL libray on big sur: "
"https://github.com/pyqtgraph/pyqtgraph/issues/939" "https://github.com/python/cpython/pull/21241"
) )
), ),
'GLImageItem.py': exceptionCondition( 'GLImageItem.py': exceptionCondition(
not(sys.platform == "darwin" and not(platform.system() == "Darwin" and
sys.version_info[0] == 2 and tuple(map(int, platform.mac_ver()[0].split("."))) >= (10, 16) and
(frontends[Qt.PYQT4] or frontends[Qt.PYSIDE])), (sys.version_info <= (3, 8, 7) or
(sys.version_info >= (3, 9) and sys.version_info < (3, 9, 1)))),
reason=( reason=(
"glClear does not work on macOS + Python2.7 + Qt4: ", "pyopenGL cannot find openGL libray on big sur: "
"https://github.com/pyqtgraph/pyqtgraph/issues/939" "https://github.com/python/cpython/pull/21241"
) )
) )
} }