Merge pull request #905 from 2xB/test_exclude_examples

Exclude selected examples from tests (such as HDF5)
This commit is contained in:
Ogi Moore 2019-05-31 22:28:54 -07:00 committed by GitHub
commit eb90616ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -41,7 +41,7 @@ except ImportError:
"pypi\n\npip install importlib\n\n")
pass
files = utils.buildFileList(utils.examples)
files = utils.buildFileList(utils.tested_examples)
frontends = {Qt.PYQT4: False, Qt.PYQT5: False, Qt.PYSIDE: False, Qt.PYSIDE2: False}
# sort out which of the front ends are available
for frontend in frontends.keys():

View File

@ -4,6 +4,7 @@ import time
import os
import sys
import errno
import copy
from pyqtgraph.pgcollections import OrderedDict
from pyqtgraph.python2_3 import basestring
@ -91,6 +92,11 @@ examples = OrderedDict([
('Custom Flowchart Nodes', 'FlowchartCustomNode.py'),
])
not_tested = ['HDF5 big data']
tested_examples = copy.deepcopy(examples)
all(map(tested_examples.pop, not_tested))
def buildFileList(examples, files=None):
if files == None: