add Big Sur conditional examples from utils.py
This commit is contained in:
parent
1184e3fcce
commit
0afd8adcd8
|
@ -1,6 +1,6 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
Demonstrate use of GLLinePlotItem to draw cross-sections of a surface.
|
This example demonstrates the use of GLBarGraphItem.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
## Add path to library (just for examples; you do not need this)
|
## Add path to library (just for examples; you do not need this)
|
||||||
|
|
|
@ -70,51 +70,15 @@ conditionalExamples = {
|
||||||
False,
|
False,
|
||||||
reason="Test is being problematic on CI machines"
|
reason="Test is being problematic on CI machines"
|
||||||
),
|
),
|
||||||
'GLVolumeItem.py': exceptionCondition(
|
}
|
||||||
not darwin_opengl_broken,
|
|
||||||
reason=darwin_opengl_reason
|
openglExamples = ['GLViewWidget.py']
|
||||||
),
|
openglExamples.extend(utils.examples_['3D Graphics'].values())
|
||||||
'GLIsosurface.py': exceptionCondition(
|
for key in openglExamples:
|
||||||
not darwin_opengl_broken,
|
conditionalExamples[key] = exceptionCondition(
|
||||||
reason=darwin_opengl_reason
|
|
||||||
),
|
|
||||||
'GLSurfacePlot.py': exceptionCondition(
|
|
||||||
not darwin_opengl_broken,
|
|
||||||
reason=darwin_opengl_reason
|
|
||||||
),
|
|
||||||
'GLScatterPlotItem.py': exceptionCondition(
|
|
||||||
not darwin_opengl_broken,
|
|
||||||
reason=darwin_opengl_reason
|
|
||||||
),
|
|
||||||
'GLshaders.py': exceptionCondition(
|
|
||||||
not darwin_opengl_broken,
|
|
||||||
reason=darwin_opengl_reason
|
|
||||||
),
|
|
||||||
'GLTextItem.py': exceptionCondition(
|
|
||||||
not darwin_opengl_broken,
|
|
||||||
reason=darwin_opengl_reason
|
|
||||||
),
|
|
||||||
'GLLinePlotItem.py': exceptionCondition(
|
|
||||||
not darwin_opengl_broken,
|
|
||||||
reason=darwin_opengl_reason
|
|
||||||
),
|
|
||||||
'GLMeshItem.py': exceptionCondition(
|
|
||||||
not darwin_opengl_broken,
|
|
||||||
reason=darwin_opengl_reason
|
|
||||||
),
|
|
||||||
'GLImageItem.py': exceptionCondition(
|
|
||||||
not darwin_opengl_broken,
|
|
||||||
reason=darwin_opengl_reason
|
|
||||||
),
|
|
||||||
'GLBarGraphItem.py': exceptionCondition(
|
|
||||||
not darwin_opengl_broken,
|
|
||||||
reason=darwin_opengl_reason
|
|
||||||
),
|
|
||||||
'GLViewWidget.py': exceptionCondition(
|
|
||||||
not darwin_opengl_broken,
|
not darwin_opengl_broken,
|
||||||
reason=darwin_opengl_reason
|
reason=darwin_opengl_reason
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
|
||||||
@pytest.mark.skipif(
|
@pytest.mark.skipif(
|
||||||
Qt.QT_LIB == "PySide2"
|
Qt.QT_LIB == "PySide2"
|
||||||
|
|
|
@ -74,6 +74,7 @@ examples_ = OrderedDict([
|
||||||
('Mesh', 'GLMeshItem.py'),
|
('Mesh', 'GLMeshItem.py'),
|
||||||
('Image', 'GLImageItem.py'),
|
('Image', 'GLImageItem.py'),
|
||||||
('Text', 'GLTextItem.py'),
|
('Text', 'GLTextItem.py'),
|
||||||
|
('BarGraph', 'GLBarGraphItem.py'),
|
||||||
('Painter', 'GLPainterItem.py'),
|
('Painter', 'GLPainterItem.py'),
|
||||||
])),
|
])),
|
||||||
('Widgets', OrderedDict([
|
('Widgets', OrderedDict([
|
||||||
|
@ -106,7 +107,6 @@ others = dict([
|
||||||
('ScaleBar', 'ScaleBar.py'),
|
('ScaleBar', 'ScaleBar.py'),
|
||||||
('ViewBox', 'ViewBox.py'),
|
('ViewBox', 'ViewBox.py'),
|
||||||
('GradientEditor', 'GradientEditor.py'),
|
('GradientEditor', 'GradientEditor.py'),
|
||||||
('GLBarGraphItem', 'GLBarGraphItem.py'),
|
|
||||||
('GLViewWidget', 'GLViewWidget.py'),
|
('GLViewWidget', 'GLViewWidget.py'),
|
||||||
('DiffTreeWidget', 'DiffTreeWidget.py'),
|
('DiffTreeWidget', 'DiffTreeWidget.py'),
|
||||||
('MultiPlotWidget', 'MultiPlotWidget.py'),
|
('MultiPlotWidget', 'MultiPlotWidget.py'),
|
||||||
|
|
Loading…
Reference in New Issue